BOX2D linking problem

I have followed the build instruction for Box2d TO THE LETTER

I built all of the libs and i have linked them into my program but i still get these errors
01
1>------ Build started: Project: box2d, Configuration: Debug Win32 ------
02
1> main'.cpp
03
1>Box2D.lib(b2World.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in main'.obj
04
1>Box2D.lib(b2Body.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in main'.obj
05
1>Box2D.lib(b2PolygonShape.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in main'.obj
06
1>Box2D.lib(b2StackAllocator.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in main'.obj
07
1>Box2D.lib(b2BlockAllocator.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in main'.obj
08
1>Box2D.lib(b2ContactManager.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in main'.obj
09
1>Box2D.lib(b2BroadPhase.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in main'.obj
10
1>Box2D.lib(b2Fixture.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in main'.obj
11
1>Box2D.lib(b2Joint.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in main'.obj
12
1>Box2D.lib(b2Island.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in main'.obj
13
1>Box2D.lib(b2TOISolver.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in main'.obj
14
1>Box2D.lib(b2Contact.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in main'.obj
15
1>Box2D.lib(b2TimeOfImpact.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in main'.obj
16
1>Box2D.lib(b2Distance.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in main'.obj
17
1>Box2D.lib(b2PulleyJoint.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in main'.obj
18
1>Box2D.lib(b2WorldCallbacks.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in main'.obj
19
1>Box2D.lib(b2Math.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in main'.obj
20
1>Box2D.lib(b2Settings.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in main'.obj
21
1>Box2D.lib(b2DynamicTree.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in main'.obj
22
1>Box2D.lib(b2FrictionJoint.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in main'.obj
23
1>Box2D.lib(b2WeldJoint.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in main'.obj
24
1>Box2D.lib(b2LineJoint.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in main'.obj
25
1>Box2D.lib(b2GearJoint.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in main'.obj
26
1>Box2D.lib(b2RevoluteJoint.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in main'.obj
27
1>Box2D.lib(b2PrismaticJoint.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in main'.obj
28
1>Box2D.lib(b2MouseJoint.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in main'.obj
29
1>Box2D.lib(b2DistanceJoint.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in main'.obj
30
1>Box2D.lib(b2ContactSolver.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in main'.obj
31
1>Box2D.lib(b2PolygonContact.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in main'.obj
32
1>Box2D.lib(b2PolygonAndCircleContact.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in main'.obj
33
1>Box2D.lib(b2CircleContact.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in main'.obj
34
1>Box2D.lib(b2Collision.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in main'.obj
35
1>Box2D.lib(b2CollidePolygon.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in main'.obj
36
1>Box2D.lib(b2CollideCircle.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in main'.obj
37
1>Box2D.lib(b2Settings.obj) : warning LNK4217: locally defined symbol _malloc imported in function "void * __cdecl b2Alloc(int)" (?b2Alloc@@YAPAXH@Z)
38
1>Box2D.lib(b2Settings.obj) : warning LNK4217: locally defined symbol _free imported in function "void __cdecl b2Free(void *)" (?b2Free@@YAXPAX@Z)
39
1>Box2D.lib(b2CollidePolygon.obj) : error LNK2001: unresolved external symbol __imp___wassert
40
1>Box2D.lib(b2ContactSolver.obj) : error LNK2019: unresolved external symbol __imp___wassert referenced in function "public: struct b2Mat22 __thiscall b2Mat22::GetInverse(void)const " (?GetInverse@b2Mat22@@QBE?AU1@XZ)
41
1>Box2D.lib(b2PolygonContact.obj) : error LNK2001: unresolved external symbol __imp___wassert
42
1>Box2D.lib(b2PolygonAndCircleContact.obj) : error LNK2001: unresolved external symbol __imp___wassert
43
1>Box2D.lib(b2CircleContact.obj) : error LNK2001: unresolved external symbol __imp___wassert
44
1>Box2D.lib(b2GearJoint.obj) : error LNK2001: unresolved external symbol __imp___wassert
45
1>Box2D.lib(b2RevoluteJoint.obj) : error LNK2001: unresolved external symbol __imp___wassert
46
1>Box2D.lib(b2PrismaticJoint.obj) : error LNK2001: unresolved external symbol __imp___wassert
47
1>Box2D.lib(b2MouseJoint.obj) : error LNK2001: unresolved external symbol __imp___wassert
48
1>Box2D.lib(b2PulleyJoint.obj) : error LNK2001: unresolved external symbol __imp___wassert
49
1>Box2D.lib(b2DynamicTree.obj) : error LNK2001: unresolved external symbol __imp___wassert
50
1>Box2D.lib(b2FrictionJoint.obj) : error LNK2001: unresolved external symbol __imp___wassert
51
1>Box2D.lib(b2LineJoint.obj) : error LNK2001: unresolved external symbol __imp___wassert
52
1>Box2D.lib(b2TOISolver.obj) : error LNK2001: unresolved external symbol __imp___wassert
53
1>Box2D.lib(b2Contact.obj) : error LNK2001: unresolved external symbol __imp___wassert
54
1>Box2D.lib(b2TimeOfImpact.obj) : error LNK2001: unresolved external symbol __imp___wassert
55
1>Box2D.lib(b2Distance.obj) : error LNK2001: unresolved external symbol __imp___wassert
56
1>Box2D.lib(b2BlockAllocator.obj) : error LNK2001: unresolved external symbol __imp___wassert
57
1>Box2D.lib(b2ContactManager.obj) : error LNK2001: unresolved external symbol __imp___wassert
58
1>Box2D.lib(b2Fixture.obj) : error LNK2001: unresolved external symbol __imp___wassert
59
1>Box2D.lib(b2Joint.obj) : error LNK2001: unresolved external symbol __imp___wassert
60
1>Box2D.lib(b2World.obj) : error LNK2001: unresolved external symbol __imp___wassert
61
1>Box2D.lib(b2Body.obj) : error LNK2001: unresolved external symbol __imp___wassert
62
1>Box2D.lib(b2PolygonShape.obj) : error LNK2001: unresolved external symbol __imp___wassert
63
1>Box2D.lib(b2StackAllocator.obj) : error LNK2001: unresolved external symbol __imp___wassert
64
1>Box2D.lib(b2TimeOfImpact.obj) : error LNK2019: unresolved external symbol __imp__floor referenced in function _floorf
65
1>C:\Users\dartosgamer\Documents\Visual Studio 2010\Projects\box2d\Debug\box2d.exe : fatal error LNK1120: 2 unresolved externals
66
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


I am not sure why. I have looked through everything.

I am using vc++ 2010 express.

please help me out with this
thanks,
dartos
I got the same problem, but have no solution yet
You might be building some projects against the system DLL and others against the static system library. Make sure the project settings are consistent.
Bumping an old thread with the same request. The only errors I'm getting are the one's of this nature:
Code:
1>Box2D.lib(b2ContactSolver.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in main'.obj
31
.
How do I change the "debug level" of the Box2D.lib?
I think this is caused by compiling your code as 'release' and then linking to a 'debug' library, or vice versa.
irresistible force wrote:
I think this is caused by compiling your code as 'release' and then linking to a 'debug' library, or vice versa.

Yeah, that's what my research has turned up, but I only have one library for Box2D. I mean, my other libraries for SFML come with both debug and release versions.
The Box2D project does not distribute binaries, only source.

Original thread: https://box2d.org/forum/viewtopic.php?t=7415