Before you start, make sure you have installed the latest service pack for VC6. Especially before SP3 VC6 had some serious bugs which WILL affect your build. This is not an optional step.
- Create a new Visual C++ 'Win32 Project'.
- Enter a name for your project and change the location to point to a work directory (separate from the runtime directory).
- Select 'An empty project' when prompted for the type of project to create.
- Create a new source file by selecting 'File -> New'. Make sure the file is in the work directory.
- Save the project.
Next, configure your project with the following settings. All of these are for the Debug configuration, to set up the Release configuration just change the directories from '\Debug\' to '\Release\'.
Debug : General : Executable = ..\bin\Debug\[appname].exe Debug : General : Working Directory = ..\bin\Debug C++ : Preprocessor : Preprocessor Definitions += _STLP_DEBUG (only in debug mode) C++ : Code Generation : Use runtime library = Debug Multithreaded DLL Link : Input : Object/library Modules += OgreMain_d.lib (OgreMain.lib in Release) Link : General : Output File = ..\bin\Debug\[appname].exe
For those using the SDK:
C++ : Preprocessor : Additional Include Directories = ..\include $(OGRE_HOME)\include $(OGRE_HOME)\samples\include Link : Input: Additional Library Path = $(OGRE_HOME)\lib
For those using the source release:
C++ : Preprocessor : Additional Include Directories = ..\include $(OGRE_SRC)\OgreMain\include $(OGRE_SRC)\Samples\Common\Include Link : Input: Additional Library Path = $(OGRE_SRC)\OgreMain\Lib\Debug