I am attempting to make a distributable .exe file for my msvc project. I ran into the problem that I was trying too use two different runtimes with my project using static /MT and the bullet files using dynamic /MD or /MDd. I attempted to rebuild bullet with cmake and I switched off USE_MSVC_RUNTIME_LIBRARY_DLL which seemed to have something to do with the libraries. I also specifically made the runtime library /MT for the projects when I used ALL_BUILD. This still resulted in the built libraries having /MD or /MDd as their runtime library and I get this output:
A bunch of things like this resulting from two runtime libs:
Code: Select all
>MSVCRTD.lib(MSVCR120D.dll) : error LNK2005: _atoi already defined in LIBCMT.lib(atox.obj)
And a bunch of things like this resulting from two runtime libs:
Code: Select all
>BulletDynamics_Debug.lib(btGeneric6DofSpringConstraint.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MDd_DynamicDebug' doesn't match value 'MT_StaticRelease'
Code: Select all
1>BulletDynamics_Debug.lib(btGeneric6DofSpringConstraint.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0'