I have a similar problem.
Using Win7 though / VS2010 ultimate.
I am using the PhysX SDK in my own static lib project.
This lib contains oa. a GFX renderer, PhysX support, wiimote support, (de)serialisation, etc…
The generated static lib I then use in a Qt application (exe) project.
In release everything compiles and runs fine.
In DEBUG mode, however, the static lib compiles fine, but the linker chokes on trying to link the static lib to the app.
IE. A heap of these errors pops up during linking:
2>PhysX3Extensions.lib(ExtDefaultCpuDispatcher.obj) : error LNK2038: mismatch detected for ‘_ITERATOR_DEBUG_LEVEL’: value ‘0’ doesn’t match value ‘2’ in qrc_archivr.obj
2>PhysX3Vehicle.lib(VehicleUtils.obj) : error LNK2038: mismatch detected for ‘_ITERATOR_DEBUG_LEVEL’: value ‘0’ doesn’t match value ‘2’ in qrc_archivr.obj
As far as my research showed me so far, this error means I am trying to use a release built lib (value ‘0’ - the PhysX LIBS) in a debug build (value ‘2’ - the Qt app). I do not find any DEBUG libs in the PhysX SDK however.
There are only Checked/profile versions for some of the physX libs.
What are those?
Linking to those ‘checked’ or ‘profile’ libs gives same result… :-S
Anyone already bumped on the same problem/ solved it perhaps?
Ideally, I would like to be able to run the entire app with ITERATOR_DEBUG_LEVEL set to 2 off course :-)
Any help would be greatly appreciated!