[airstrike] const char* argv breaks building on win32
eero.tamminen at netsonic.fi
Sun Apr 10 03:35:53 EDT 2005
On Sunday 10 April 2005 02:07, Lutz-Peter Hooge wrote:
> 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".
I added a lot of consts to the code. It's more correct and in some cases
gives compiler more opportunities for optimization.
> In fact, SDL_main.h defines main without const:
> extern C_LINKAGE int SDL_main(int argc, char *argv);
No code in Airstrike CVS code calls SDL_main()...????
> I use gcc version 3.2.3 (this is the one in the currently stable MingW).
More information about the airstrike