Sign in to follow this  

Using release version of Bullet libs when debugging?

This topic is 687 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hey guys and girls,

 

I've gotten Bullet up and running, but when I'm running my app in debug mode I get errors if I don't link with Bullet debug libraries. Since I only need debug info for my app and not Bullet (the performance is not good enough with Bullet debug libs), is it possible to debug my app with Bullet's release libraries?

 

The error I get:

 

Error    LNK2038    mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in errors.obj    Bullet Test    C:\Users\<removedmyuserid>\Documents\Visual Studio 2015\Projects\Bullet Test\Bullet Test\BulletDynamics_vs2010_x64_release.lib(btDiscreteDynamicsWorld.obj)    1

 

Error    LNK2038    mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MTd_StaticDebug' in errors.obj    Bullet Test    C:\Users\<removedmyuserid>\Documents\Visual Studio 2015\Projects\Bullet Test\Bullet Test\BulletDynamics_vs2010_x64_release.lib(btDiscreteDynamicsWorld.obj)    1

 

I only include "btBulletDynamicsCommon.h" in my project, and link with "BulletDynamics_vs2010_x64_release.lib, BulletCollision_vs2010_x64_release.lib, LinearMath_vs2010_x64_release.lib"..

Edited by vinterberg

Share this post


Link to post
Share on other sites

You need to compile what would generally be called an "optimised debug" build of bullet, which is compiled with the same debug options (such as iterator debugging) as your app, and linked against the same debug runtime, but has the compiler optimisations enabled (as they would be in a release build).

 

Alternately, you can compile both bullet and your application for release, and enable debug info for just your application. Keep in mind that this is an actual release build of your application, however, and as such it is significantly harder to debug than a true debug build.

Share this post


Link to post
Share on other sites

This topic is 687 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this