关于XP上VC6安装SDK后出现异常有关问题
关于XP上VC6安装SDK后出现错误问题
环境:
XP, VC6.0, stpport-5.2.1
之前都没问题
今天安装了MS Platform SDK February 2003后,编译程序只出现以下错误,不知如何解决,请教高手:
我的TOOLS下是这么设的:
1.D:\PROGRAM FILES\STLPORT-5.2.1\STLPORT
2.D:\Program Files\Microsoft SDK\include
其它略......
错误如下:
d:\program files\microsoft sdk\include\winbase.h(1392) : error C2733: second C linkage of overloaded function 'InterlockedIncrement' not allowed
d:\program files\microsoft sdk\include\winbase.h(1390) : see declaration of 'InterlockedIncrement'
d:\program files\microsoft sdk\include\winbase.h(1399) : error C2733: second C linkage of overloaded function 'InterlockedDecrement' not allowed
d:\program files\microsoft sdk\include\winbase.h(1397) : see declaration of 'InterlockedDecrement'
d:\program files\microsoft sdk\include\winbase.h(1407) : error C2733: second C linkage of overloaded function 'InterlockedExchange' not allowed
d:\program files\microsoft sdk\include\winbase.h(1404) : see declaration of 'InterlockedExchange'
d:\program files\stlport-5.2.1\stlport\stl\_move_construct_fwk.h(87) : error C2143: syntax error : missing ';' before '<'
d:\program files\stlport-5.2.1\stlport\stl\_move_construct_fwk.h(96) : see reference to class template instantiation 'priv::_MoveSourceTraits<_Tp>' being compiled
d:\program files\stlport-5.2.1\stlport\stl\_move_construct_fwk.h(87) : error C2059: syntax error : '<'
d:\program files\stlport-5.2.1\stlport\stl\_move_construct_fwk.h(96) : see reference to class template instantiation 'priv::_MoveSourceTraits<_Tp>' being compiled
d:\program files\stlport-5.2.1\stlport\stl\_move_construct_fwk.h(87) : error C2039: 'implemented' : is not a member of '`global namespace''
d:\program files\stlport-5.2.1\stlport\stl\_move_construct_fwk.h(96) : see reference to class template instantiation 'priv::_MoveSourceTraits<_Tp>' being compiled
d:\program files\stlport-5.2.1\stlport\stl\_move_construct_fwk.h(87) : error C2238: unexpected token(s) preceding ';'
d:\program files\stlport-5.2.1\stlport\stl\_move_construct_fwk.h(96) : see reference to class template instantiation 'priv::_MoveSourceTraits<_Tp>' being compiled
d:\program files\stlport-5.2.1\stlport\stl\_move_construct_fwk.h(92) : error C2143: syntax error : missing ';' before '<'
d:\program files\stlport-5.2.1\stlport\stl\_move_construct_fwk.h(96) : see reference to class template instantiation 'priv::_MoveSourceTraits<_Tp>' being compiled
d:\program files\stlport-5.2.1\stlport\stl\_move_construct_fwk.h(92) : error C2059: syntax error : '<'
d:\program files\stlport-5.2.1\stlport\stl\_move_construct_fwk.h(96) : see reference to class template instantiation 'priv::_MoveSourceTraits<_Tp>' being compiled
d:\program files\stlport-5.2.1\stlport\stl\_move_construct_fwk.h(95) : error C2039: '_Ret' : is not a member of '`global namespace''
d:\program files\stlport-5.2.1\stlport\stl\_move_construct_fwk.h(96) : see reference to class template instantiation 'priv::_MoveSourceTraits<_Tp>' being compiled
d:\program files\stlport-5.2.1\stlport\stl\_move_construct_fwk.h(95) : error C2238: unexpected token(s) preceding ';'
d:\program files\stlport-5.2.1\stlport\stl\_move_construct_fwk.h(96) : see reference to class template instantiation 'priv::_MoveSourceTraits<_Tp>' being compiled
d:\program files\stlport-5.2.1\stlport\stl\_move_construct_fwk.h(101) : error C2039: '_Type' : is not a member of '_MoveSourceTraits<_Tp>'
d:\program files\stlport-5.2.1\stlport\stl\_move_construct_fwk.h(101) : error C2146: syntax error : missing ';' before identifier '_AsMoveSource'
d:\program files\stlport-5.2.1\stlport\stl\_move_construct_fwk.h(101) : error C2433: '_Type' : 'inline' not permitted on data declarations
d:\program files\stlport-5.2.1\stlport\stl\_move_construct_fwk.h(101) : error C2501: '_Type' : missing storage-class or type specifiers
环境:
XP, VC6.0, stpport-5.2.1
之前都没问题
今天安装了MS Platform SDK February 2003后,编译程序只出现以下错误,不知如何解决,请教高手:
我的TOOLS下是这么设的:
1.D:\PROGRAM FILES\STLPORT-5.2.1\STLPORT
2.D:\Program Files\Microsoft SDK\include
其它略......
错误如下:
d:\program files\microsoft sdk\include\winbase.h(1392) : error C2733: second C linkage of overloaded function 'InterlockedIncrement' not allowed
d:\program files\microsoft sdk\include\winbase.h(1390) : see declaration of 'InterlockedIncrement'
d:\program files\microsoft sdk\include\winbase.h(1399) : error C2733: second C linkage of overloaded function 'InterlockedDecrement' not allowed
d:\program files\microsoft sdk\include\winbase.h(1397) : see declaration of 'InterlockedDecrement'
d:\program files\microsoft sdk\include\winbase.h(1407) : error C2733: second C linkage of overloaded function 'InterlockedExchange' not allowed
d:\program files\microsoft sdk\include\winbase.h(1404) : see declaration of 'InterlockedExchange'
d:\program files\stlport-5.2.1\stlport\stl\_move_construct_fwk.h(87) : error C2143: syntax error : missing ';' before '<'
d:\program files\stlport-5.2.1\stlport\stl\_move_construct_fwk.h(96) : see reference to class template instantiation 'priv::_MoveSourceTraits<_Tp>' being compiled
d:\program files\stlport-5.2.1\stlport\stl\_move_construct_fwk.h(87) : error C2059: syntax error : '<'
d:\program files\stlport-5.2.1\stlport\stl\_move_construct_fwk.h(96) : see reference to class template instantiation 'priv::_MoveSourceTraits<_Tp>' being compiled
d:\program files\stlport-5.2.1\stlport\stl\_move_construct_fwk.h(87) : error C2039: 'implemented' : is not a member of '`global namespace''
d:\program files\stlport-5.2.1\stlport\stl\_move_construct_fwk.h(96) : see reference to class template instantiation 'priv::_MoveSourceTraits<_Tp>' being compiled
d:\program files\stlport-5.2.1\stlport\stl\_move_construct_fwk.h(87) : error C2238: unexpected token(s) preceding ';'
d:\program files\stlport-5.2.1\stlport\stl\_move_construct_fwk.h(96) : see reference to class template instantiation 'priv::_MoveSourceTraits<_Tp>' being compiled
d:\program files\stlport-5.2.1\stlport\stl\_move_construct_fwk.h(92) : error C2143: syntax error : missing ';' before '<'
d:\program files\stlport-5.2.1\stlport\stl\_move_construct_fwk.h(96) : see reference to class template instantiation 'priv::_MoveSourceTraits<_Tp>' being compiled
d:\program files\stlport-5.2.1\stlport\stl\_move_construct_fwk.h(92) : error C2059: syntax error : '<'
d:\program files\stlport-5.2.1\stlport\stl\_move_construct_fwk.h(96) : see reference to class template instantiation 'priv::_MoveSourceTraits<_Tp>' being compiled
d:\program files\stlport-5.2.1\stlport\stl\_move_construct_fwk.h(95) : error C2039: '_Ret' : is not a member of '`global namespace''
d:\program files\stlport-5.2.1\stlport\stl\_move_construct_fwk.h(96) : see reference to class template instantiation 'priv::_MoveSourceTraits<_Tp>' being compiled
d:\program files\stlport-5.2.1\stlport\stl\_move_construct_fwk.h(95) : error C2238: unexpected token(s) preceding ';'
d:\program files\stlport-5.2.1\stlport\stl\_move_construct_fwk.h(96) : see reference to class template instantiation 'priv::_MoveSourceTraits<_Tp>' being compiled
d:\program files\stlport-5.2.1\stlport\stl\_move_construct_fwk.h(101) : error C2039: '_Type' : is not a member of '_MoveSourceTraits<_Tp>'
d:\program files\stlport-5.2.1\stlport\stl\_move_construct_fwk.h(101) : error C2146: syntax error : missing ';' before identifier '_AsMoveSource'
d:\program files\stlport-5.2.1\stlport\stl\_move_construct_fwk.h(101) : error C2433: '_Type' : 'inline' not permitted on data declarations
d:\program files\stlport-5.2.1\stlport\stl\_move_construct_fwk.h(101) : error C2501: '_Type' : missing storage-class or type specifiers