Skip to content

Setup with visual studio 2008

pmprog edited this page Jul 17, 2012 · 3 revisions

Setting up Sparrow3D in Visual Studio 2008

Firstly, the C compiler in Visual Studio 2008 runs to a standard around 2 decades old. It doesn't use the most recent version, so when you try and compile the .c files as is in a VS project, you will encounter errors. To get around this, you force Visual Studio to use the C++ compiler, and everything will be fine.

  1. Download the git repository into a local directory
  2. Open the .sln file in Visual Studio
  3. In Tools->Options->Projects and Solutions->VC++ Directories, make sure you set up all the Include and Library folders for all the dependancies (SDL, SDL_ttf, SDL_image)
  4. Build the DLL using Build->Rebuild Solution. If all is well, you should get a success message and a Release folder (or Debug, depending on your build config)
  5. Back in Tools->Options->Projects and Solutions->VC++ Directories, add your Sparrow3D git folder into the Includes list, and the Release subfolder into the Libraries list.
You can now close the project and start on your own project using the Sparrow libraries.