mirror of
https://github.com/yawut/SDL.git
synced 2026-10-02 13:16:43 -05:00
-lmingw32 is necessary in the link line before -lSDLmain, otherwise WinMain in libSDLmain.a won't get linked in
If this happens you'll get "undefined reference to `_WinMain@16'" when trying to link applications that use SDL. --HG-- branch : SDL-1.2
This commit is contained in:
@@ -2551,7 +2551,7 @@ case "$host" in
|
||||
SDLMAIN_SOURCES="$srcdir/src/main/win32/*.c"
|
||||
SDLMAIN_LDFLAGS="-static"
|
||||
SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
|
||||
SDL_LIBS="-lSDLmain $SDL_LIBS -mwindows"
|
||||
SDL_LIBS="-lmingw32 -lSDLmain $SDL_LIBS -mwindows"
|
||||
;;
|
||||
*-wince*)
|
||||
ARCH=win32
|
||||
|
||||
Reference in New Issue
Block a user