Compile Source Code on Windows 7 W VS2010

Ok as you’ll be able to see I made it to 35% but then I get hit with the error bomb. Any direction at this point would be helpful. is it possible that this is a compatibility issue?

=====================================================
1> [ 35%] Building C++ object built/tmp/p3vision_composite1.obj
1> p3vision_composite1.cxx
1>c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\atlmfc\include\atlcomcli.h(332): error C2143: syntax error : missing ‘)’ before ‘&&’
1> c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\atlmfc\include\atlcomcli.h(350) : see reference to class template instantiation ‘ATL::CComPtr’ being compiled
1>c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\atlmfc\include\atlcomcli.h(332): error C2143: syntax error : missing ‘;’ before ‘&&’
1>c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\atlmfc\include\atlcomcli.h(332): error C2652: ‘ATL::CComPtr’ : illegal copy constructor: first parameter must not be a ‘ATL::CComPtr’
1>c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\atlmfc\include\atlcomcli.h(332): error C2059: syntax error : ‘)’
1>c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\atlmfc\include\atlcomcli.h(332): error C2334: unexpected token(s) preceding ‘:’; skipping apparent function body