[GCC-XML] FW: Issue including stl headers

James Vecore james.vecore at speedshape.com
Thu Dec 13 18:52:15 EST 2007


Hi, 

I just registered to the mailing list and can't seem to login, so I couldn't do a search, but I'm having a problem with gccxml 0.9.0 (downloaded from cvs and compiled today 12-13-2007). 

I'm trying to run a very simple file through gccxml using visual studio 2005 sp1 as the "compiler". This is the source file:

#include <string>

struct EmptyClass {};

int a_function(float f, EmptyClass e)
{
}

int main(void)
{
  return 0;
}

All I did was the "#include <string>" to the sample on the website.

This is the output I get from the cmdline is this:

> \\Applications\Applications\gccxml\gccxml_0.9.0\x86\gccxml.exe --gccxml-compiler msvc8 "C:\Source.cpp" -fxml=c:\test.xml

In file included from C:/Dev/Microsoft Visual Studio 8/VC/include/cstring:13,
                 from //Applications/Applications/gccxml/gccxml_0.9.0/x86/Vc8/Include/xlocale:7,
                 from C:/Dev/Microsoft Visual Studio 8/VC/include/xiosbase:6,
                 from C:/Dev/Microsoft Visual Studio 8/VC/include/streambuf:6,
                 from C:/Dev/Microsoft Visual Studio 8/VC/include/xlocnum:9,
                 from C:/Dev/Microsoft Visual Studio 8/VC/include/ios:6,
                 from C:/Dev/Microsoft Visual Studio 8/VC/include/ostream:6,
                 from C:/Dev/Microsoft Visual Studio 8/VC/include/istream:6,
                 from C:/Dev/Microsoft Visual Studio 8/VC/include/string:6,
                 from C:\Source.cpp:1:
C:/Dev/Microsoft Visual Studio 8/VC/include/string.h:136:188: error: macro "__DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_1_EX" passed 10 arguments, but takes just 9
C:/Dev/Microsoft Visual Studio 8/VC/include/string.h:175:188: error: macro "__DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_1_EX" passed 10 arguments, but takes just 9
C:/Dev/Microsoft Visual Studio 8/VC/include/string.h:296:176: error: macro "__DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_1_EX" passed 10 arguments, but takes just 9
C:/Dev/Microsoft Visual Studio 8/VC/include/string.h:303:197: error: macro "__DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_1_EX" passed 10 arguments, but takes just 9
C:/Dev/Microsoft Visual Studio 8/VC/include/string.h:309:197: error: macro "__DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_1_EX" passed 10 arguments, but takes just 9
In file included from C:/Dev/Microsoft Visual Studio 8/VC/include/cstring:13,
                 from //Applications/Applications/gccxml/gccxml_0.9.0/x86/Vc8/Include/xlocale:7,
                 from C:/Dev/Microsoft Visual Studio 8/VC/include/xiosbase:6,
                 from C:/Dev/Microsoft Visual Studio 8/VC/include/streambuf:6,
                 from C:/Dev/Microsoft Visual Studio 8/VC/include/xlocnum:9,
                 from C:/Dev/Microsoft Visual Studio 8/VC/include/ios:6,
                 from C:/Dev/Microsoft Visual Studio 8/VC/include/ostream:6,
                 from C:/Dev/Microsoft Visual Studio 8/VC/include/istream:6,
                 from C:/Dev/Microsoft Visual Studio 8/VC/include/string:6,
                 from C:\Source.cpp:1:
C:/Dev/Microsoft Visual Studio 8/VC/include/string.h:136: error: '__DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_1_EX' does not name a type
C:/Dev/Microsoft Visual Studio 8/VC/include/string.h:175: error: '__DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_1_EX' does not name a type
C:/Dev/Microsoft Visual Studio 8/VC/include/string.h:296: error: '__DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_1_EX' does not name a type
C:/Dev/Microsoft Visual Studio 8/VC/include/string.h:303: error: '__DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_1_EX' does not name a type
C:/Dev/Microsoft Visual Studio 8/VC/include/string.h:309: error: '__DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_1_EX' does not name a type
In file included from //Applications/Applications/gccxml/gccxml_0.9.0/x86/Vc8/Include/xlocale:7,
                 from C:/Dev/Microsoft Visual Studio 8/VC/include/xiosbase:6,
                 from C:/Dev/Microsoft Visual Studio 8/VC/include/streambuf:6,
                 from C:/Dev/Microsoft Visual Studio 8/VC/include/xlocnum:9,
                 from C:/Dev/Microsoft Visual Studio 8/VC/include/ios:6,
                 from C:/Dev/Microsoft Visual Studio 8/VC/include/ostream:6,
                 from C:/Dev/Microsoft Visual Studio 8/VC/include/istream:6,
                 from C:/Dev/Microsoft Visual Studio 8/VC/include/string:6,
                 from C:\Source.cpp:1:
C:/Dev/Microsoft Visual Studio 8/VC/include/cstring:25: error: '::strxfrm' has not been declared
In file included from C:/Dev/Microsoft Visual Studio 8/VC/include/iosfwd:8,
                 from C:/Dev/Microsoft Visual Studio 8/VC/include/utility:6,
                 from //Applications/Applications/gccxml/gccxml_0.9.0/x86/Vc8/Include/xutility:7,
                 from C:/Dev/Microsoft Visual Studio 8/VC/include/xmemory:9,
                 from C:/Dev/Microsoft Visual Studio 8/VC/include/xstring:6,
                 from C:/Dev/Microsoft Visual Studio 8/VC/include/stdexcept:7,
                 from //Applications/Applications/gccxml/gccxml_0.9.0/x86/Vc8/Include/xlocale:8,
                 from C:/Dev/Microsoft Visual Studio 8/VC/include/xiosbase:6,
                 from C:/Dev/Microsoft Visual Studio 8/VC/include/streambuf:6,
                 from C:/Dev/Microsoft Visual Studio 8/VC/include/xlocnum:9,
                 from C:/Dev/Microsoft Visual Studio 8/VC/include/ios:6,
                 from C:/Dev/Microsoft Visual Studio 8/VC/include/ostream:6,
                 from C:/Dev/Microsoft Visual Studio 8/VC/include/istream:6,
                 from C:/Dev/Microsoft Visual Studio 8/VC/include/string:6,
                 from C:\Source.cpp:1:
C:/Dev/Microsoft Visual Studio 8/VC/include/cwchar:43: error: '::wcsxfrm' has not been declared
In file included from C:/Dev/Microsoft Visual Studio 8/VC/include/utility:6,
                 from //Applications/Applications/gccxml/gccxml_0.9.0/x86/Vc8/Include/xutility:7,
                 from C:/Dev/Microsoft Visual Studio 8/VC/include/xmemory:9,
                 from C:/Dev/Microsoft Visual Studio 8/VC/include/xstring:6,
                 from C:/Dev/Microsoft Visual Studio 8/VC/include/stdexcept:7,
                 from //Applications/Applications/gccxml/gccxml_0.9.0/x86/Vc8/Include/xlocale:8,
                 from C:/Dev/Microsoft Visual Studio 8/VC/include/xiosbase:6,
                 from C:/Dev/Microsoft Visual Studio 8/VC/include/streambuf:6,
                 from C:/Dev/Microsoft Visual Studio 8/VC/include/xlocnum:9,
                 from C:/Dev/Microsoft Visual Studio 8/VC/include/ios:6,
                 from C:/Dev/Microsoft Visual Studio 8/VC/include/ostream:6,
                 from C:/Dev/Microsoft Visual Studio 8/VC/include/istream:6,
                 from C:/Dev/Microsoft Visual Studio 8/VC/include/string:6,
                 from C:\Source.cpp:1:
C:/Dev/Microsoft Visual Studio 8/VC/include/iosfwd: In static member function 'static _Elem* std::char_traits<_Elem>::_Copy_s(_Elem*, size_t, const _Elem*, size_t)':
C:/Dev/Microsoft Visual Studio 8/VC/include/iosfwd:212: error: '::_invalid_parameter_noinfo' has not been declared
C:/Dev/Microsoft Visual Studio 8/VC/include/iosfwd: In static member function 'static _Elem* std::char_traits<_Elem>::_Move_s(_Elem*, size_t, const _Elem*, size_t)':
C:/Dev/Microsoft Visual Studio 8/VC/include/iosfwd:242: error: '::_invalid_parameter_noinfo' has not been declared
In file included from C:/Dev/Microsoft Visual Studio 8/VC/include/xmemory:9,
                 from C:/Dev/Microsoft Visual Studio 8/VC/include/xstring:6,
                 from C:/Dev/Microsoft Visual Studio 8/VC/include/stdexcept:7,
                 from //Applications/Applications/gccxml/gccxml_0.9.0/x86/Vc8/Include/xlocale:8,
                 from C:/Dev/Microsoft Visual Studio 8/VC/include/xiosbase:6,
                 from C:/Dev/Microsoft Visual Studio 8/VC/include/streambuf:6,
                 from C:/Dev/Microsoft Visual Studio 8/VC/include/xlocnum:9,
                 from C:/Dev/Microsoft Visual Studio 8/VC/include/ios:6,
                 from C:/Dev/Microsoft Visual Studio 8/VC/include/ostream:6,
                 from C:/Dev/Microsoft Visual Studio 8/VC/include/istream:6,
                 from C:/Dev/Microsoft Visual Studio 8/VC/include/string:6,
                 from C:\Source.cpp:1:
//Applications/Applications/gccxml/gccxml_0.9.0/x86/Vc8/Include/xutility: In function 'typename std::_Iter_random_helper<typename std::iterator_traits<_Iter>::iterator_category, typename std::iterator_traits<_Iter2>::iterator_category>::_Iter_random_cat std::_Iter_random(const _Iter1&, const _Iter2&)':
//Applications/Applications/gccxml/gccxml_0.9.0/x86/Vc8/Include/xutility:818: error: type/value mismatch at argument 1 in template parameter list for 'template<class _Cat1, class _Cat2> class std::_Iter_random_helper'
//Applications/Applications/gccxml/gccxml_0.9.0/x86/Vc8/Include/xutility:818: error:   expected a type, got 'std::iterator_traits<_Iter>::iterator_category'
//Applications/Applications/gccxml/gccxml_0.9.0/x86/Vc8/Include/xutility:818: error: type/value mismatch at argument 2 in template parameter list for 'template<class _Cat1, class _Cat2> class std::_Iter_random_helper'
//Applications/Applications/gccxml/gccxml_0.9.0/x86/Vc8/Include/xutility:818: error:   expected a type, got 'std::iterator_traits<_Iter2>::iterator_category'
//Applications/Applications/gccxml/gccxml_0.9.0/x86/Vc8/Include/xutility:818: error: invalid type in declaration before ';' token
//Applications/Applications/gccxml/gccxml_0.9.0/x86/Vc8/Include/xutility: In function 'typename std::_Iter_random_helper3<typename std::iterator_traits<_Iter>::iterator_category, typename std::iterator_traits<_Iter2>::iterator_category, typename std::iterator_traits<_Iter3>::iterator_category>::_Iter_random_cat std::_Iter_random(const _Iter1&, const _Iter2&, const _Iter3&)':
....
etc



More information about the gccxml mailing list