Setting up a SDL project with Visual Studio

If you installed SDL by following CS 405 SDL installation directions or are working in the CS 405 lab:

  1. In Visual Studio, create a new project.

  2. Under "Visual C++ Projects", select 'Win32 Project' under the 'Win32' folder. Choose a 'Name' (recommend gp) and 'Location'

  3. At the Application Wizard. Click on the 'Application Settings', select 'Empty project'

  4. Click on 'Finish'.
  5. Save the 'main.cpp' code into the 'gp' project directory
  6. Right-click on the "Source Files" in the solution tree, and select 'Add Existing Item...'

  7. Select 'main.cpp', and click 'Open'.
  8. We can now make some changes to the properties. Under the 'Project' Menu, select 'Properties'.

  9. Under the 'Linker' folder in the 'Input' category, add "SDLmain.lib sdl.lib opengl32.lib glu32.lib" (without quotes) in the "Additional Dependencies" field.

  10. Click 'OK' to accept the changes