Jump to content
  • Advertisement
Sign in to follow this  
Haku

My SDL problem

This topic is 4946 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Ok, i have just installed the SDL pack with the bloodshed dev c++ compiler and am trying to start using SDL. It has been sucssesfully installed with no problems. I went to cone3d and got a tutorial for SDL. When i tried to run the completed source code i got these errors: - [Linker error] undefined reference to `SDL_LockSurface' - [Linker error] undefined reference to `SDL_UnlockSurface' - and loads of other things that begin with SDL_... whats going wrong and how do i fix it?

Share this post


Link to post
Share on other sites
Advertisement
You must link to the SDL lib file (can't remember its name SDLMain.lib?).
I can't tell you exactly how to do this, because I don't know which compiler you are using.

Good luck,
Pat.

Share this post


Link to post
Share on other sites
i said before that im using 'bloodshed devc++' and where do i put this sdl lib file?

Share this post


Link to post
Share on other sites
yea i have read this but because bloodshed installed it for me shouldnt it be in the right place already?

Share this post


Link to post
Share on other sites
Quote:
Original post by Haku
i said before that im using 'bloodshed devc++' and where do i put this sdl lib file?

Sorry - it's kinda late here

Share this post


Link to post
Share on other sites
Quote:
Original post by Haku
yea i have read this but because bloodshed installed it for me shouldnt it be in the right place already?


i dont know

go look

Share this post


Link to post
Share on other sites
Quote:
Original post by Haku
yea i have read this but because bloodshed installed it for me shouldnt it be in the right place already?

Quote:
from the link above
Now in Dev-C++ start a new console project. Now go to the project options dialog (found in the menu Project). The thing we need to set here is the field that says "Further object files or linker options:". Type in "-lmingw32 -lSDLmain -lSDL" (w/o the quotes) inside it. Now click OK.

Are you sure you did that? [edit]I mean the bold part[/edit]

Share this post


Link to post
Share on other sites
ok i fixed that bit but nowhen i try to compile the app it says SDL.Dll not found...what do i do?

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!