NxOgre compilation error

garmanger

08-04-2011 10:05:15

Hey can anyone help me out? I just installed physX and NxOgre for my project on VS 2008 and i have the nxogre solution building properly but when i include nxOgre.h to my project it fails and has the following linker errors


Error 1 error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall NxOgre::Path::Path(char const *)" (__imp_??0Path@NxOgre@@QAE@PBD@Z) referenced in function "void __cdecl NxOgre::`dynamic initializer for 'MEMORY_PATH''(void)" (??__EMEMORY_PATH@NxOgre@@YAXXZ) CarSim01.obj CarSim01


Error 2 error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall NxOgre::Vec3::Vec3(float const &,float const &,float const &)" (__imp_??0Vec3@NxOgre@@QAE@ABM00@Z) referenced in function "void __cdecl NxOgre::Constants::`dynamic initializer for 'MEAN_EARTH_GRAVITY''(void)" (??__EMEAN_EARTH_GRAVITY@Constants@NxOgre@@YAXXZ) CarSim01.obj CarSim01


Error 3 error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall NxOgre::Path::~Path(void)" (__imp_??1Path@NxOgre@@QAE@XZ) referenced in function "void __cdecl NxOgre::`dynamic atexit destructor for 'MEMORY_PATH''(void)" (??__FMEMORY_PATH@NxOgre@@YAXXZ) CarSim01.obj CarSim01

I havent a clue whats up. I followed the tutorials, have the recommended directories, the environmental variables set, the right additional directory and includes in the project and the dlls in my app debug folder. However with regards to the NxOgre.lib, am i right in putting that into the Additional dependencies in the Custom Build Step section? well any help or suggestion would be appreciated :)

shadoslayer

03-11-2011 03:44:05

I am literally getting the EXACT same errors, and would like to know if you have found a solution. if not, i'm hoping someone well-versed in nxOgre will come by soon and save us :P. i cannot continue working on my project without physics. it just...won't work
also, i've noticed that the individual file containing the include statement will compile, but the entire project will not. maybe this is useful, maybe not. i dunno.
EDIT: i am using VS 2010, buggyswires branch of nxOgre, ogre sdk v1.7.3, and i am running windows 7 x64. are there different instructions for installing on a x64 machine?

betajaen

03-11-2011 07:46:24

EDIT: i am using VS 2010, buggyswires branch of nxOgre, ogre sdk v1.7.3, and i am running windows 7 x64. are there different instructions for installing on a x64 machine?

Nope, I use the same setup as you. Can you post back with a full walkthrough of what you do, and the entire build log?

shadoslayer

03-11-2011 15:43:35

I figured out my mistake :P when betajaen asked for the walkthrough, i went through the instructions on github again for myself, just to verify that I had followed them to the word, and as it turned out, i missed the step of adding NxOgre.lib as an additional dependency. maybe that'll fix garmanger's problem, too.