const char* argv breaks building on win32
Lutz-Peter Hooge
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[1]: *** [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).
Lutz-Peter
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 205 bytes
Desc: not available
URL: <http://icculus.org/pipermail/airstrike/attachments/20050410/3edd3067/attachment.pgp>
More information about the airstrike
mailing list