Skip to main content
GameDev.net gamedev.net
🔒 Locked

SDL_rotozoom

Started by this is not kasker Jan 17, 2007 at 11:29 PM 5 replies 2.1k views
Original Post
this is not kasker
this is not kasker
I've looked everywhere and can't get rotozoom to work. I have installed the SDL_gfx devpak. I'm Using Dev-C++ with -lmingw32 -lSDLmain -lSDL in the linker. This is how it looks in the code. SDL_Surface *image; image = rotozoomSurface(baseImage, tAngle, 0, 0); This is all that shows up in the complier error box. [Linker error] undefined reference to `_imp__rotozoomSurface' ld returned 1 exit status C:\Dev-Cpp\SDL Stuff\Makefile.win [Build Error] [AA!.exe] Error 1 No idea what's wrong please help!
Chad Smith
Chad Smith
Add the lib for SDL_GFX.

Chad

this is not kasker
this is not kasker
Add it where? The devpak was suppose to install it and did as far as I can tell. Putting the gfx library in the same folder as my code has no effect.
this is not kasker
this is not kasker
I had already tried that but it worked this time around. Probably a typo. Anyway, thanks.
samuraicrow
samuraicrow
The reason it didn't work last time is probably because you got the linker libraries listed in the wrong order in the include box.
this is not kasker
this is not kasker
I read about that after I got it working. No matter what order I put them in it still works though.
-lmingw32 -lSDLmain -lSDL -lSDL_gfx works just as well as the reverse of it.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.