Jump to content
  • Advertisement
Sign in to follow this  
orcfan32

SDL: Linkers and Libraries

This topic is 4841 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

Advertisement
-- unless you're using a GCC variant such as Dev-C++, MinGW32, etc, in which case the libraries are libsdl.a and libsdlmain.a and the linker parameters are -lsdl and -lsdlmain

Share this post


Link to post
Share on other sites
Not only that, but when I include SDL.h, it says that it doesn't exist. I checked the include\SDL directory and yes, it is there.

Share this post


Link to post
Share on other sites
What exactly do you type to include it? Try "SDL\SDL.h", <SDL.H>, <SDL\SDL.H>, etc. It depends on your platform and compiler as to what will work.

Share this post


Link to post
Share on other sites
Quote:
Original post by orcfan32
Not only that, but when I include SDL.h, it says that it doesn't exist. I checked the include\SDL directory and yes, it is there.



Did you set the include directory where your compilator has to use the file?

In VS.net it's look like that.

tool - Option. Project - VC++ Directories. In the include files add the include directory of SDL and do the same in the library files with the library folder of SDL.

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!