PhysX 3.3 + VS 2013

Hello there! I’m trying to integrate physx with my game engine but i cant even compile it because im getting linker errors :

error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MTd_StaticDebug' doesn't match value 'MDd_DynamicDebug'

when i change Runtime Library to MTd

error LNK2038: mismatch detected for '_MSC_VER': value '1700' doesn't match value '1800'

Where can i get good libraries compatible with newest visual studio?

Hi

Looks like you’re mixing something… Check if you use the release libs for the release configuration (same with debug). Furthermore, I suggest to use CMake to create your Visual Studio project file, then the MSC_VER error should also disappear. Or check in your project properties, Configuration Properties->General->Platform Toolset.

I also use Physx with VS2013, and it works.

Cheers

Hi again

I see there’s a new version, did you use 3.3.2? If you use 3.3.1, you only have one binary directory which works.

Cheers

I’m having the same problem with VS2013 + Physx 3.3.2 builds.
The actual problem for me is linking with PhysX3ExtensionsDEBUG.lib or other variants of it. I guess these are static libraries that cause the problem.

Errors like:

error LNK2038: mismatch detected for '_MSC_VER': value '1700' doesn't match value '1800'
error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MTd_StaticDebug' doesn't match value 'MDd_DynamicDebug'

Did you manage to solve it ?

You may have to rebuild the static libraries using a different flavor of CRT to match your application. The source for the extensions, vehicle controller, character controller, etc., are included in the binary distro for this reason

Hi Mike

Thanks for this info. I rebuilt the libraries, but I don’t find PxTask. This one is also required. Where are the project and source files for this?

Thanks,
Rob

Ugh. I think you may need a source distro in order to rebuild PxTask. Please inquire at physXlicensing@nvidia.com, refer to this thread, and I’ll see what I can do.