Compile Issue

danto

10-11-2007 16:40:33

I searched through the forums trying to find a resolution to this problem, but without any luck.

I'm getting the following linker errors when I attempt to compile the nxOgre sdk.


1> Creating library J:\programming_libs\OgreSDK-1.4.5\NxOgre\\lib\NxOgre_d.lib and object J:\programming_libs\OgreSDK-1.4.5\NxOgre\\lib\NxOgre_d.exp
1>NxOgrePhysXDriver.obj : error LNK2019: unresolved external symbol __imp__MessageBoxA@16 referenced in function "protected: void __thiscall NxOgre::PhysXDriver::_createSDK(void)" (?_createSDK@PhysXDriver@NxOgre@@IAEXXZ)
1>J:\programming_libs\OgreSDK-1.4.5\NxOgre\\lib\NxOgre_d.dll : fatal error LNK1120: 1 unresolved externals


I'm using the latest Ogre build 1.4.5 and have re-installed the physx runtime and SDK. I also have the environment variables set for physx and for ogre. I'm using VC8 to compile.

Any idea why I'm getting this error? The lib is being generated, but not the dll.

betajaen

10-11-2007 18:24:33

It's probably due to the Platform SDK on your computer not being installed or installed incorrectly.

If you don't want to mess around with it (but I recommend you do sort it out).

You can just comment this out around line 320, in NxOgrePhysXDriver.cpp

#if defined NX_WIN32 && defined NX_DEBUG
s << std::endl << "On clicking of OK this Application will quit. See log or console window for a copy of this message and further information.";
MessageBox( NULL, s.str().c_str(), "Unable to start the PhysX SDK!", MB_OK | MB_ICONERROR | MB_TASKMODAL);
#endif



But I recommend you just make sure the PlatformSDK is installed as per the instructions before you do anything harsh.

danto

11-11-2007 02:37:16

Thank you for the information. I did manage to get it working by commenting out those lines. I'll check into the platform SDK issue. I haven't had any issues with other projects, but thanks again for the information.

danto

11-11-2007 14:17:46

hmm...well I thought I was all good. hehe. I went ahead and got everything compiling nxogre wise and am able to compile the cake example in release/debug mode. The release version runs fine, but the debug mode crashes immediately.

Little Background:
I ended up completely uninstalling and re-installing VC8 and the platform SDK as well as re-installing the physx drivers (as I realized I had installed the wrong version). I've recompiled nxogre release and debug which now generates a lib/dll for both.

When the debug version of cake crashes there are no logs generated for either ogre or for nxOgre. As stated the release version works without issue.

This is the error message in the error box that pops up immediately after running the debug version of cake....


The application failed to initialize properly (0x0150002). Click on OK to terminate the application.