So, I started with Ogre3D. I setup a project in Visual C++ 2008 Express Edition, using the Ogre App Wizard (vc9 if I recall correctly). I use OgreSDK_vc9_v1-7-1. I debugged, had to change the name of a folder in my SDK from boost_1_4_7 (or something like that) to boost so the wizard would do it automatically. And I debugged, and executed, and I saw the Ogre Head. Great!
Then I started programming. A main.cpp with this code:
Code: Select all
#include "OGRE\ExampleApplication.h"
class Example1 : public ExampleApplication
{
public:
void createScene()
{}
};
int main (void)
{
Example1 app;
app.go();
return 0;
}
I've tried deleting, commenting and adding includes, I commented the OISMouse include in BaseApplication.h (gave me an error because it could not find mouse's functions, etc.), I've looked into BaseApplication.cpp. Maybe I'm blind, or I just don't get where the problem is. I've been looking around for a solution for a couple of days now, no solution found.1>Linking...
1>OIS_d.lib(OIS_d.dll) : error LNK2005: "public: class OIS::MouseState const & __thiscall OIS::Mouse::getMouseState(void)const " (?getMouseState@Mouse@OIS@@QBEABVMouseState@2@XZ) already defined in BaseApplication.obj
1>bin\Debug\First_Ogre3DApp.exe : fatal error LNK1169: one or more multiply defined symbols found
Can anyone help me, please? I would be most grateful.
Thank you,
Darkatom.