Unable to build a simple Bullet Physics app

I am trying to compile the Hello World program from the Wikipedia Wiki in Visual Studio 2012 Express.
I managed to create and import the three library projects needed to run the example, but there seems to be a problem with linking them.
In the compilation log, 38 of these errors are repeated many times for each of the libraries.

error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MDd_DynamicDebug' doesn't match value 'MD_DynamicRelease' in Main.obj 

I don’t understand what happened.

+4
source share
4 answers

I also had this problem, it is easy to fix it when you realize it.

Make sure that all of your projects match the same runtime library for each configuration.

Additional information: http://www.davidlenihan.com/2008/01/choosing_the_correct_cc_runtim.html

+3
source

To add to the answer TIHan

One place is worth a look in the Linker->Input->Additional Dependencies section. I found out that I had a release version associated with my application when the debug build was supposed to be related. As soon as I changed it, the error disappeared.

0
source

Another thing to check is the project configuration window, in which you choose which configuration is actually used for each project for the current solution configuration configuration. For example, I recently had a solution in which the release configuration had one of the static library projects configured to collect the debug version that caused this error.

0
source

You can also get this error if the dependent project (creating .lib) is not included in the solution and, therefore, was not created correctly.

0
source

All Articles