What dose "template parameter 'T' is ambiguous" means?help..

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~~~~
Old compilers like VC6 may not work.
Erin Catto wrote:
Old compilers like VC6 may not work.

But the ZIP package of Box2D2.1.2 applies the CMakeLists that can only work with VC6 when i am trying with cmake,I prefered to some materal that the code in b2Math.h could really cause this error:
template <typename T>
inline T b2Min(T a, T b)
{
return a < b ? a : b;
}

inline b2Vec2 b2Min(const b2Vec2& a, const b2Vec2& b)
{
return b2Vec2(b2Min(a.x, b.x), b2Min(a.y, b.y));
}

if you invoke the b2Min with two b2Vec2 parameters,which of the two should the compiler invoke?
And i don't how to avoid this mistake in the VS2010' complier mechanism
That is called "template specialization" and is part of the C++ standard. So nothing strange is going on here except that VC6 sucks. The cmake GUI gives an option to pick the compiler, so just pick something better than VC6.

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