The latest Ogre 2.1 commit doesn't link. An example of error message is:
Code: Select all
1>OgrePlanarReflections.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: struct Ogre::ActiveActorData * __thiscall Ogre::STLAllocator<struct Ogre::ActiveActorData,class Ogre::CategorisedAllocPolicy<0> >::allocate(unsigned int,void const *)" (__imp_?allocate@?$STLAllocator@UActiveActorData@Ogre@@V?$CategorisedAllocPolicy@$0A@@2@@Ogre@@QAEPAUActiveActorData@2@IPBX@Z) referenced in function "protected: bool __thiscall std::vector<struct Ogre::ActiveActorData,class Ogre::STLAllocator<struct Ogre::ActiveActorData,class Ogre::CategorisedAllocPolicy<0> > >::_Buy(unsigned int)" (?_Buy@?$vector@UActiveActorData@Ogre@@V?$STLAllocator@UActiveActorData@Ogre@@V?$CategorisedAllocPolicy@$0A@@2@@2@@std@@IAE_NI@Z)
I removed all _OgreExport in OgreMain/include/OgreMemorySTLAllocator.h and it worked.
Edit: 2.2 also has this problem. After doing the same fix, the latest Ogre 2.2 commit can compile/link and the samples are working fine.