[GCC-XML] GCCXML and Visual Studio 2008 (TR1 implementation)

Roman Yakovenko roman.yakovenko at gmail.com
Tue Dec 23 16:07:09 EST 2008


Hello.

It seems that default configuration of gccxml is not able to compile
any file which includes <map>, <set> headers. The following list of
errors is just an example:

                 from E:/Program Files/Microsoft Visual Studio
9.0/VC/include/xfwrap:20,
                 from E:/Program Files/Microsoft Visual Studio
9.0/VC/include/xrefwrap:44,
                 from E:/Program Files/Microsoft Visual Studio
9.0/VC/include/functional:874,
                 from E:/Program Files/Microsoft Visual Studio
9.0/VC/include/xtree:6,
                 from E:/Program Files/Microsoft Visual Studio
9.0/VC/include/set:6,
                 from
E:\development\language-binding\pygccxml_dev\unittests\data\core_overloads_2.hpp:9:
E:/Program Files/Microsoft Visual Studio 9.0/VC/include/xxresult:102:
error: redefinition of 'struct std::tr1::_Result_of1<_Rx (_Arg0::*)(),
_Farg0&>'
E:/Program Files/Microsoft Visual Studio 9.0/VC/include/xxresult:94:
error: previous definition of 'struct std::tr1::_Result_of1<_Rx
(_Arg0::*)(), _Farg0&>'
E:/Program Files/Microsoft Visual Studio 9.0/VC/include/xxresult:111:
error: redefinition of 'struct std::tr1::_Result_of1<_Rx (_Arg0::*)(),
_Farg0&>'
E:/Program Files/Microsoft Visual Studio 9.0/VC/include/xxresult:94:
error: previous definition of 'struct std::tr1::_Result_of1<_Rx
(_Arg0::*)(), _Farg0&>'


I found out, that the source of errors is TR1 implementation.Passing
-D"_HAS_TR1=0" to gccxml.exe solves the problem.

-- 
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/



More information about the gccxml mailing list