I've successfully compiled Bullet 2.81, and can run the demos. When trying to link the libraries in my own, I'm getting errors. I've reduced the code to:
Code: Select all
#include "btBulletDynamicsCommon.h"
int main(int argc, char** argv)
{
btBoxShape* box = new btBoxShape(btVector3(1, 1, 1));
return 0;
}
Code: Select all
1>------ Build started: Project: HelloBulletApp, Configuration: Release Win32 ------
1> main.cpp
1> main.obj : MSIL .netmodule or module compiled with /GL found; restarting link with /LTCG; add /LTCG to the link command line to improve linker performance
1>BulletCollision.lib(btCollisionShape.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in main.obj
1>BulletCollision.lib(btConvexShape.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in main.obj
1>BulletCollision.lib(btPolyhedralConvexShape.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in main.obj
1>BulletCollision.lib(btConvexPolyhedron.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in main.obj
1>LinearMath.lib(btConvexHullComputer.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in main.obj
1>LinearMath.lib(btGeometryUtil.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in main.obj
1>LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library
1>c:\path\to\HelloBulletApp\HelloBulletApp\Release\HelloBulletApp.exe : fatal error LNK1319: 6 mismatches detected
========== Build: 0 succeeded, 1 failed, 4 up-to-date, 0 skipped ==========
I've tried:
- rebuilding bullet 2.81,
redownloading 2.81,
creating a blank project and adding the libraries,
creating a blank project and adding the Projects as suggested at http://bulletphysics.org/mediawiki-1.5. ... om_scratch,
Is there anything I can do?