Skrevet av Emne: Setting up Visual C++ 6.0 to use Simple Directmedia Layer (SDL)  (Lest 2372 ganger)

ATC

  • Gjest
Setting up Visual C++ 6.0 to use Simple Directmedia Layer (SDL)
« på: 27. ſeptember 2008, 18:24 pm »
  • [applaud]0
  • [smite]0
  • How to include SDL in a C/C++ project?



    ATC

    • Gjest
    [Solved] Setting up Visual C++ 6.0 to use Simple Directmedia Layer (SDL)
    « Svar #1 på: 27. ſeptember 2008, 18:24 pm »
  • [applaud]0
  • [smite]0
  • 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>