Ksmiler
Member
Hello, Im trying to compile my SDL program for Windows using MinGW. The program compiles using DevKitGP2X but not when using MinGW.
I get the following error:
CODE
Linking tutorial.exe...
_objs/_win32/sdltest.o(.text+0x2c8):sdltest.cpp: undefined reference to `_imp__rotozoomSurface'
collect2: ld returned 1 exit status
make[1]: *** [tutorial.exe] Error 1
make: *** [win32] Error 2
The libraries I have in my makefile is...
CODE
LIBS = -lmingw32 -lSDLmain -lSDL -lSDL_image -lSDL_gfx -lSDL_mixer -lSDL_ttf
I have tried rearranging the order of the defined libraries, but still no luck.. Am I missing something critical? :blink:
If the problem is still not clear ill explain more
Thanks!
I get the following error:
CODE
Linking tutorial.exe...
_objs/_win32/sdltest.o(.text+0x2c8):sdltest.cpp: undefined reference to `_imp__rotozoomSurface'
collect2: ld returned 1 exit status
make[1]: *** [tutorial.exe] Error 1
make: *** [win32] Error 2
The libraries I have in my makefile is...
CODE
LIBS = -lmingw32 -lSDLmain -lSDL -lSDL_image -lSDL_gfx -lSDL_mixer -lSDL_ttf
I have tried rearranging the order of the defined libraries, but still no luck.. Am I missing something critical? :blink:
If the problem is still not clear ill explain more
Thanks!