Box2D Forums

It is currently Wed May 22, 2013 2:48 am

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: BOX2D linking problem
PostPosted: Tue Aug 02, 2011 1:10 pm 
Offline

Joined: Tue Aug 02, 2011 1:08 pm
Posts: 2
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


Top
 Profile  
 
PostPosted: Mon Jan 02, 2012 8:39 am 
Offline

Joined: Mon Jan 02, 2012 8:32 am
Posts: 2
I got the same problem, but have no solution yet


Top
 Profile  
 
PostPosted: Wed Jan 04, 2012 10:34 am 
Offline
Site Admin

Joined: Thu Sep 06, 2007 12:34 am
Posts: 2931
You might be building some projects against the system DLL and others against the static system library. Make sure the project settings are consistent.


Top
 Profile  
 
PostPosted: Wed Jan 25, 2012 8:02 pm 
Offline

Joined: Sun Jan 22, 2012 1:08 pm
Posts: 3
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?


Top
 Profile  
 
PostPosted: Wed Jan 25, 2012 8:23 pm 
Offline

Joined: Tue Jun 24, 2008 8:25 pm
Posts: 1515
Location: Tokyo
I think this is caused by compiling your code as 'release' and then linking to a 'debug' library, or vice versa.


Top
 Profile  
 
PostPosted: Wed Jan 25, 2012 8:33 pm 
Offline

Joined: Sun Jan 22, 2012 1:08 pm
Posts: 3
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.


Top
 Profile  
 
PostPosted: Wed Feb 01, 2012 6:29 pm 
Offline
Site Admin

Joined: Thu Sep 06, 2007 12:34 am
Posts: 2931
The Box2D project does not distribute binaries, only source.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group