Ah-ha! From SDL_main.h:
/* Redefine main() on Win32 and MacOS so that it is called by winmain.c */
#if defined(WIN32) || defined(_WIN32) || \ (defined(__MWERKS__) && !defined(__BEOS__)) || \ defined(macintosh) || defined(__APPLE__) || \ defined(__SYMBIAN32__) || defined(QWS)
[...]
#define main SDL_main
That could have an adverse effect on the linker's ability to find "main", yes. Try this patch:
Index: configure.in =================================================================== RCS file: /pike/data/cvsroot/Pike/7.4/src/post_modules/SDL/configure.in,v retrieving revision 1.5 diff -u -r1.5 configure.in --- configure.in 2003/03/24 17:41:19 1.5 +++ configure.in 2003/03/24 22:39:13 @@ -66,6 +66,7 @@ #include <stdio.h> #include <stdlib.h> #include <string.h> +#define _SDL_main_h 1 #include "SDL.h"
char* @@ -179,6 +180,7 @@ LIBS="$LIBS $SDL_LIBS" AC_TRY_LINK([ #include <stdio.h> +#define _SDL_main_h 1 #include "SDL.h"
int main(int argc, char *argv[])
/ Marcus Comstedt (ACROSS) (Hail Ilpalazzo!)
Previous text:
2003-03-24 21:00: Subject: SDL-fel
What does the Windows SDL.h look like?
/ Marcus Comstedt (ACROSS) (Hail Ilpalazzo!)