Now we are going to add the lib and header files to our project
Open Visual studios 2005 and create a new Win32 Project.
Select Win32 Console Application.
Save it under the SDLProject folder that you have created.
On the next window click the empty project check box under Additional Options.
Click finish
Now add a new cpp source file to you project (Project->Add New Item)
Select the Project->My Project Properties menu
1) Click the C/C++ folder and then click Code Generation
2) Change the RunTime library pull down menu to Debug Multithreaded DLL or Multithreaded DLL
3) Click C/C++ then General
4) Add the following line in the Additional Include Directories do not include the quotes. "../../SDL/include;../../Epee Engine;../../TinyXML"
5) Change Detect 64-bit Portability issues to no
6) Click the Linker folder
7) Then Click General
8) Add the additional line to the Additional library Directories do not include the quotes. "../../SDL/lib/"
9) Next Click System and change the pull down menu of SubSystem to Windows(/SUBSYSTEM:WINDOWS)
Now it is time to add the libraries to the Additional Dependencies text field under Linker then Input
If you are using the Epee Engine version .35 or bellow but not the .331 opengl preview add the following line
SDLmain.lib sdl.lib SDL_mixer.lib sdlgfx.lib SDL_image.lib SDL_ttf.lib
if you are using the Epee Engine version .331 opengl preview add the following line
(note: opengl32.lib glu32.lib are already installed on your computer and do not need to be in the SDL/lib folder)
opengl32.lib glu32.lib SDLmain.lib sdl.lib SDL_mixer.lib SDL_image.lib SDL_ttf.lib
TinyXML can be added to you project in two ways eaher by adding the lib to your project or adding the source files to your project.
if you want to use the lib add tinyxml.lib after SDL_ttf.lib
Now change the Configuration pull down menu to Release go back and do steps 1-7
after that click ok
Now if you want to add tinyxml by add the sorce to you project follow the followng steps
1) Select Project->add to project->files andd add the following files
tinystr.h
tinyxml.h
tinystr.cpp
tinyxml.cpp
tinyxmlerror.cpp
tinyxmlparser.cpp
Make sure not to add xmltest.cpp
and then add EpeeEngine.cpp and EpeeEngine.h
You are ready to write your code
Note: the current version(.35) of the Epee Engine will come up with the following error
error C2065 'cout' undeclared identifier
error C2065 'endl' undeclared identifier
cout needs to be changed to std::cout
endl needs to be changed to std::endl
or
add the following lines to the top of your main cpp or the top off EpeeEngine.h
#define cout std::cout
#define endl std::endl\\