[GCC-XML] Problems running GCCXML (latest CVS snapshot) on Windows

Natschläger Thomas Thomas.Natschlaeger at scch.at
Mon Oct 9 12:54:46 EDT 2006


Hi!

I've a problem with gccxml on my current project: I use Py++ (which uses gccxml) to create Python bindings. On my Linux box everything works out great with the latest version of GCCXML (CVS snapshot) and Py++ (0.81).

Now I wanted to port the project to Windows. My C++ classes compile fine with MSVC 7.1 (and the C++ unit tests all run perfect). I compiled gccxml using MSVC 7.1 and wanted to run it on my C++ sources (which worked perfectly under Linux) and now gccxml fails. In my project I'm using STLPORT (5.1) and the BOOST libraries (1.33.1, with STLPORT support). The errors I'm getting are either within STLPORT or within BOOST.

Does anyone have any hints what I'm doing wrong here?

-thomas

Dr. Thomas Natschläger
Software Competence Center Hagenberg
Hauptstraße 99, 4232 Hagenberg, Austria
Tel: ++43 7236 3343-868 Fax: ++43 7236 3343-888
thomas.natschlaeger at scch.at, www.scch.at

PS: 

---------- Here is what gxxcml --print says:

GCC-XML version 0.7.0
Configuration settings:
  GCCXML_CONFIG="C:/__Projects-Local__/PCSIM/devtools/windows-x86/bin/gccxml_config"
  GCCXML_COMPILER="msvc71"
  GCCXML_CXXFLAGS=" /DWIN32 /D_WINDOWS /W3 /Zm1000 /GX /GR"
  GCCXML_EXECUTABLE="C:/__Projects-Local__/PCSIM/devtools/windows-x86/bin/gccxml_cc1plus.exe"
  GCCXML_CPP="C:/__Projects-Local__/PCSIM/devtools/windows-x86/bin/gccxml_cc1plus.exe"
  GCCXML_FLAGS="-U__STDC__ -U__MINGW32__-D__stdcall=__attribute__((__stdcall__)) -D__cdecl=__attribute__((__cdecl__)) -D__fastcall=__attribute__((__fastcall__)) -D_stdcall=__attrib
ute__((__stdcall__)) -D_cdecl=__attribute__((__cdecl__)) -D_fastcall=__attribute__((__fastcall__)) -D__declspec(x)=__attribute__((x)) -D__cplusplus -D_inline=inline -D__forceinline =__inline -D_MSC_VER=1310 -D_MSC_EXTENSIONS -D_WIN32 -D_M_IX86 -D_WCHAR_T_DEFINED -DPASCAL= -DRPC_ENTRY= -DSHSTDAPI=HRESULT -D_INTEGRAL_MAX_BITS=64 -D__uuidof(x)=IID() -DSHSTDAPI_( x)=x -D__w64= -D__int64="long long" -iwrapper"C:/__Projects-Local__/PCSIM/devtools/windows-x86/bin/Vc71/Include" -iwrapper"C:/__Projects-Local__/PCSIM/devtools/windows-x86/bin/Vc71
/PlatformSDK" -I"C:/Program Files/Microsoft Visual Studio .NET 2003/Vc7/include" -I"C:/Program Files/Microsoft Visual Studio .NET 2003/Vc7/PlatformSDK/Include" "
  GCCXML_USER_FLAGS=""
  GCCXML_ROOT="C:/__Projects-Local__/PCSIM/devtools/windows-x86/bin"

---------- Here is my call of gccxml:

gccxml -I"../../devtools/windows-x86/include/stlport"  -I"."  -I"../pcsim/simcore" -I"../pcsim/simutils" -I"../pcsim/simobjects" -I"../../devtools/windows-x86/include"  -D"HAVE_STL_PORT" -D"MPICH_IGNORE_CXX_SEEK"  "pypcsim.h" -fxml=pcsim.xml

---------- And here is the output:


In file included from ../../devtools/windows-x86/include/stlport/stl/_string.h:1403,
                 from ../../devtools/windows-x86/include/stlport/string:32,
                 from ../pcsim/simutils/makestring.h:2,
                 from ../pcsim/simcore/SimObject.h:10,
                 from pypcsim.h:1:
../../devtools/windows-x86/include/stlport/stl/_string_operators.h: In function
   `stlpmtx_std::basic_string<_CharT, _Traits, _Alloc>
   stlpmtx_std::operator+(const stlpmtx_std::basic_string<_CharT, _Traits,
   _Alloc>&, const stlpmtx_std::basic_string<_CharT, _Traits, _Alloc>&)':
../../devtools/windows-x86/include/stlport/stl/_string_operators.h:37: error: type
   specifier omitted for parameter `__s'
../../devtools/windows-x86/include/stlport/stl/_string_operators.h:37: error: syntax
   error before `.' token
../../devtools/windows-x86/include/stlport/stl/_string_operators.h: In function
   `stlpmtx_std::basic_string<_CharT, _Traits, _Alloc>
   stlpmtx_std::operator+(const _CharT*, const
   stlpmtx_std::basic_string<_CharT, _Traits, _Alloc>&)':
../../devtools/windows-x86/include/stlport/stl/_string_operators.h:55: error: type
   specifier omitted for parameter `__n'
../../devtools/windows-x86/include/stlport/stl/_string_operators.h:55: error: syntax
   error before `+' token
../../devtools/windows-x86/include/stlport/stl/_string_operators.h: In function
   `stlpmtx_std::basic_string<_CharT, _Traits, _Alloc>
   stlpmtx_std::operator+(_CharT, const stlpmtx_std::basic_string<_CharT,
   _Traits, _Alloc>&)':
../../devtools/windows-x86/include/stlport/stl/_string_operators.h:71: error: type
   specifier omitted for parameter
../../devtools/windows-x86/include/stlport/stl/_string_operators.h:71: error: syntax
   error before numeric constant
../../devtools/windows-x86/include/stlport/stl/_string_operators.h: In function
   `stlpmtx_std::basic_string<_CharT, _Traits, _Alloc>
   stlpmtx_std::operator+(const stlpmtx_std::basic_string<_CharT, _Traits,
   _Alloc>&, const _CharT*)':
../../devtools/windows-x86/include/stlport/stl/_string_operators.h:89: error: type
   specifier omitted for parameter `__x'
../../devtools/windows-x86/include/stlport/stl/_string_operators.h:89: error: syntax
   error before `.' token
../../devtools/windows-x86/include/stlport/stl/_string_operators.h: In function
   `stlpmtx_std::basic_string<_CharT, _Traits, _Alloc>
   stlpmtx_std::operator+(const stlpmtx_std::basic_string<_CharT, _Traits,
   _Alloc>&, _CharT)':

Dr. Thomas Natschläger
Software Competence Center Hagenberg
Hauptstraße 99, 4232 Hagenberg, Austria
Tel: ++43 7236 3343-868 Fax: ++43 7236 3343-888 thomas.natschlaeger at scch.at, www.scch.at



More information about the gccxml mailing list