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

Brad King brad.king at kitware.com
Mon Jan 5 14:38:13 EST 2009


Roman Yakovenko wrote:
> 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.

Can you provide a minimal test case, please?  I do

----- tset.cxx ------
#include <set>
---------------------

gccxml --gccxml-compiler msvc9 test.cxx

and it works fine.

-Brad



More information about the gccxml mailing list