After download the ZIP of Box2D_2.1.2,i tried as what Building.txt said,and it gose well until i open the Box2D.dsw with VC++6,i can't compile it because of those errors:
--------------------Configuration: HelloWorld - Win32 Release--------------------
Compiling...
HelloWorld.cpp
D:\Box2D212\Box2D\Box2D/Common/b2Math.h(545) : error C2782: 'T __cdecl b2Min(T,T)' : template parameter 'T' is ambiguous
could be 'struct b2Vec2'
or 'const struct b2Vec2 &'
D:\Box2D212\Box2D\Box2D/Common/b2Math.h(545) : error C2785: 'T __cdecl b2Min(T,T)' and 'struct b2Vec2 __cdecl b2Min(const struct b2Vec2 &,const struct b2Vec2 &)' have different return types
D:\Box2D212\Box2D\Box2D/Common/b2Math.h(539) : see declaration of 'b2Min'
D:\Box2D212\Box2D\Box2D/Common/b2Math.h(556) : error C2782: 'T __cdecl b2Max(T,T)' : template parameter 'T' is ambiguous
could be 'struct b2Vec2'
or 'const struct b2Vec2 &'
D:\Box2D212\Box2D\Box2D/Common/b2Math.h(556) : error C2785: 'T __cdecl b2Max(T,T)' and 'struct b2Vec2 __cdecl b2Max(const struct b2Vec2 &,const struct b2Vec2 &)' have different return types
D:\Box2D212\Box2D\Box2D/Common/b2Math.h(550) : see declaration of 'b2Max'
D:\Box2D212\Box2D\Box2D/Common/b2Math.h(567) : error C2782: 'T __cdecl b2Clamp(T,T,T)' : template parameter 'T' is ambiguous
could be 'struct b2Vec2'
or 'const struct b2Vec2 &'
D:\Box2D212\Box2D\Box2D/Common/b2Math.h(567) : error C2785: 'T __cdecl b2Clamp(T,T,T)' and 'struct b2Vec2 __cdecl b2Clamp(const struct b2Vec2 &,const struct b2Vec2 &,const struct b2Vec2 &)' have different return types
D:\Box2D212\Box2D\Box2D/Common/b2Math.h(561) : see declaration of 'b2Clamp'
执行 cl.exe 时出错.
ALL_BUILD - 1 error(s), 0 warning(s)
....
I am not porficient in the template of c++,and i am convienced that it's something mistakes that does not belong to the Box2D itself,please help me~~~~
--------------------Configuration: HelloWorld - Win32 Release--------------------
Compiling...
HelloWorld.cpp
D:\Box2D212\Box2D\Box2D/Common/b2Math.h(545) : error C2782: 'T __cdecl b2Min(T,T)' : template parameter 'T' is ambiguous
could be 'struct b2Vec2'
or 'const struct b2Vec2 &'
D:\Box2D212\Box2D\Box2D/Common/b2Math.h(545) : error C2785: 'T __cdecl b2Min(T,T)' and 'struct b2Vec2 __cdecl b2Min(const struct b2Vec2 &,const struct b2Vec2 &)' have different return types
D:\Box2D212\Box2D\Box2D/Common/b2Math.h(539) : see declaration of 'b2Min'
D:\Box2D212\Box2D\Box2D/Common/b2Math.h(556) : error C2782: 'T __cdecl b2Max(T,T)' : template parameter 'T' is ambiguous
could be 'struct b2Vec2'
or 'const struct b2Vec2 &'
D:\Box2D212\Box2D\Box2D/Common/b2Math.h(556) : error C2785: 'T __cdecl b2Max(T,T)' and 'struct b2Vec2 __cdecl b2Max(const struct b2Vec2 &,const struct b2Vec2 &)' have different return types
D:\Box2D212\Box2D\Box2D/Common/b2Math.h(550) : see declaration of 'b2Max'
D:\Box2D212\Box2D\Box2D/Common/b2Math.h(567) : error C2782: 'T __cdecl b2Clamp(T,T,T)' : template parameter 'T' is ambiguous
could be 'struct b2Vec2'
or 'const struct b2Vec2 &'
D:\Box2D212\Box2D\Box2D/Common/b2Math.h(567) : error C2785: 'T __cdecl b2Clamp(T,T,T)' and 'struct b2Vec2 __cdecl b2Clamp(const struct b2Vec2 &,const struct b2Vec2 &,const struct b2Vec2 &)' have different return types
D:\Box2D212\Box2D\Box2D/Common/b2Math.h(561) : see declaration of 'b2Clamp'
执行 cl.exe 时出错.
ALL_BUILD - 1 error(s), 0 warning(s)
....
I am not porficient in the template of c++,and i am convienced that it's something mistakes that does not belong to the Box2D itself,please help me~~~~