Ano-Tech Computers
Enter keyword:

Setting up Visual C++ 6.0 to use Simple Directmedia Layer (SDL)
Problem:
How to include SDL in a C/C++ project?
 
Solution:
Select "Tools | Options", then "Directories"
Show directories for: Include files
Add "SDL<version>\Include"
Show directories for: Library files
Add "SDL<version>\Lib"
Show directories for: Source files
Add "SDL<version>\Src"
Click OK

Select "Project | Settings"
Category: General
Add the following to Object/library modules: "SDL.lib SDLmain.lib opengl32.lib glu32.lib"
Click OK

You should now be able to include the following headers:
#include <SDL.h>
#include <SDL_opengl.h>


 
Discuss this solution
Did this article solve your problem? Yes No Did not apply

We welcome anyone who is willing to contribute to this public knowledge base, contact siteadmin@atc.no if you have information you would like to share. The idea is not to replace the commercial support sites, but to publish those hard-to-find solutions you've found yourself looking for over and over again.

Show all articles