I built the OGRE SDK for Windows 7 with MinGW/MSYS compiler. My build will not work with other compilers. I have not tried it on other versions of Windows.
If you already have eclipse, you can download the CDT. Use the instructions for the p2 software repository.
If you do not have eclipse, do the following:
Create a new empty C++ project in Eclipse. Use the MinGW Tool Chain. Give it a name and hit the "Next" button.
Click the "Advanced Settings..."
Click the "C/C++ Build" drop-down on the left.
Click Environment
At the top of the "Tool Settings" tab, select "[All Configurations]" in "Configuration:". You may need to scroll up, to see it.
Add two environment variables with the "Add..." button.
NAME=OGRE_HOME VALUE=C:\GameDev\OgreSDK
Click "Settings" under "C/C++ Build" on the left side of the window.
In the "Tool Settings" tab, click "Includes" under "GCC C++ Compiler"
Click the Add button icon (a document with a green plus sign on the right).
You will need to add the directories where the include files are for OGRE, CEGUI, OIS and boost. You can type exactly what appears below. Eclipse will use the variable ${OGRE_HOME} here.
${OGRE_HOME}\include\OGRE ${OGRE_HOME}\include\OGRE\Overlay ${OGRE_HOME}\include\OIS
Click "Libraries" under "GCC C++ Linker". In the section "Libraries (-l)" add the following names:
OgreMain OgreOverlay OIS OgreRTShaderSystem
Add the library paths in the "Library search path (-L)" area.
${OGRE_HOME}\bin
Click "Ok".
Click "Finish".
Create a src directory inside your project directory.
Copy resources.cfg plugins.cfg files into the top level of your project.
In eclipse, right click on your new project and select "Refresh".
You might need to turn off the Direct3D renderer if the version on your system is not the EXACT version used to build Ogre. Put a # in front of the line "Plugin=RenderSystem_Direct3D9". Once you get it building with OpenGL, try uncommenting the line and see if it works. You can also build Ogre's plugins yourself so it matched your system, but I'm not going in to that detail here.
Download the four .cpp and .h files in http://cs.gettysburg.edu/~cpresser/cs391/software/winFiles to your src directory.
In eclipse, right click on your new project and select "Refresh". You are now ready to edit your OGRE project. Make sure you build it (Hammer Icon) once before attempting to run it.
The next time you want to set up a project, right click on this project and Copy it. Paste it, give the new one a different name, delete the files in src and run "Clean..." from the "Project" menu for the new project. You won't have to enter in all of the new settings again.
Open your project properties (right click on the project and select "Properties..."
In the left side of the window, select "Run/Debug Setting"
Click the executable name and click the "Edit..." button.
In the new window that pops up, click the "Environment" tab.
Click the "New..." button.
In the new environment variable dialog add:
Name=PATH VALUE=C:\MinGW\bin;C:\GameDev\OgreSDK\binReplace the paths with the actual values for your installation. You cannot use the OGRE_HOME variable here.
Now try to run the program.