const char* argv breaks building on win32
lpvader at gmx.de
Sat Apr 9 19:07:20 EDT 2005
Compiling the latest CVS with MinGW I get:
> tests/testengine.c:37: conflicting types for `SDL_main'
> e:/compiler/mingw/include/SDL_main.h:56: previous declaration of `SDL_main'
> mingw32-make: *** [tests/testengine.o] Error 1
Seems to be caused by the recently added "const" to "char argv".
In fact, SDL_main.h defines main without const:
extern C_LINKAGE int SDL_main(int argc, char *argv);
I use gcc version 3.2.3 (this is the one in the currently stable MingW).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 205 bytes
Desc: not available
More information about the airstrike