From 55fa4c00291a6662bf24214a611f569daed104f7 Mon Sep 17 00:00:00 2001
From: Sam Lantinga
- You can either use the precompiled libraries from
- the SDL Download web site , or you can build SDL yourself.
+ You can either use the precompiled libraries from the SDL Download web site , or you can build SDL yourself.
- Go into the VisualC directory and double-click on the VC++ file "
- You may be prompted at this point to upgrade the workspace, should you be using
- a more recent version of Visual C++. If so, allow the workspace to be upgraded.
+ Go into the VisualC directory and double-click on the Visual Studio solution for your version of Visual Studio, e.g.
Build the
- Using SDL with Microsoft Visual C++ 5,6 and 7
+ Using SDL with Microsoft Visual C++
by Lion Kimbro and additions by
James Turk
Building SDL
SDL.dsw
" ("SDL.sln
"). This should open up the IDE.
- SDL_VS2008.sln
This should open up the IDE.
.dll
and .lib
files.
@@ -31,32 +26,22 @@
This is done by right clicking on each project in turn (Projects are listed in
the Workspace panel in the FileView tab), and selecting "Build".
- If you get an error about SDL_config.h being missing, you should - copy include/SDL_config.h.default to include/SDL_config.h and try again. -
You may get a few warnings, but you should not get any errors. You do have to - have at least the DirectX 5 SDK installed, however. The latest - version of DirectX can be downloaded or purchased on a cheap CD (my - recommendation) from Microsoft . + have at least the DirectX 9 SDK installed, however. The latest + version of DirectX can be downloaded from Microsoft.
Later, we will refer to the following .lib and .dll files that have just been generated:
- Search for these using the Windows Find (Windows-F) utility, if you don't - already know where they should be. For those of you with a clue, look inside - the Debug or Release directories of the subdirectories of the Project folder. - (It might be easier to just use Windows Find if this sounds confusing. And - don't worry about needing a clue; we all need visits from the clue fairy - frequently.) + Search for these using the Windows Find (Windows-F) utility inside the VisualC directory.
Add the following files to your project (It is not necessary to copy them to your project directory):
(To add them to your project, right click on your project, and select "Add @@ -122,7 +107,7 @@
-#include "SDL.h"
+#include "SDL2.h"
int main( int argc, char* argv[] )
{