[GCC-XML]Two problems on VC++7.1

Pere Mato Vila Pere.Mato at cern.ch
Fri May 14 12:59:56 EDT 2004


I am having a couple of problems with the emulation of VC++7.1. 

1) The following code 

#include <typeinfo>
using std::type_info;

Produces the following error:

tyinfo.cpp:2: error: `type_info' is already declared in this scope
tyinfo.cpp:2: error: using declaration `type_info' introduced ambiguous
type `
   type_info'

2) Compiling <signal.h> has a problem with __decl and produces the
following error.

In file included from signal.cpp:1:
C:/Program Files/Microsoft Visual Studio .NET
2003/Vc7/Include/signal.h:92: error: syntax
   error before `int'

I am using the following version:

C:\GaudiSoft\Test>gccxml --print
GCC-XML version 0.6.0
Configuration settings:
  GCCXML_CONFIG="C:/LCG_external/gccxml/0.6.0/win32_vc71/bin/config"
  GCCXML_COMPILER="msvc71"
  GCCXML_CXXFLAGS=""
 
GCCXML_EXECUTABLE="C:/LCG_external/gccxml/0.6.0/win32_vc71/bin/gccxml_cc
1plus.exe"
 
GCCXML_CPP="C:/LCG_external/gccxml/0.6.0/win32_vc71/bin/gccxml_cc1plus.e
xe"
  GCCXML_FLAGS="-D__stdcall=__attribute__((__stdcall__))
-D__cdecl=__attribute__((__cdecl__)) -D__fa
stcall=__attribute__((__fastcall__))
-D_stdcall=__attribute__((__stdcall__)) -D_cdecl=__attribute__(
(__cdecl__)) -D_fastcall=__attribute__((__fastcall__))
-D__declspec(x)=__attribute__((x)) -D__cplusp
lus -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)=II
D() -DSHSTDAPI_(x)=x -D__w64= -D__int64=long long
-iwrapperC:/LCG_external/gccxml/0.6.0/win32_vc71/s
hare/gccxml-0.6/Vc71/Include
-iwrapperC:/LCG_external/gccxml/0.6.0/win32_vc71/share/gccxml-0.6/Vc71/
PlatformSDK -IC:/Program Files/Microsoft Visual Studio .NET
2003/Vc7/Include -IC:/Program Files/Micr
osoft Visual Studio .NET 2003/Vc7/PlatformSDK/Include "
  GCCXML_USER_FLAGS=""
  GCCXML_ROOT="C:/LCG_external/gccxml/0.6.0/win32_vc71/share/gccxml-0.6"



------------------------------------------------------------
Pere Mato  CERN, PH Department, CH 1211 Geneva 23, Switzerland
           e-mail: Pere.Mato at cern.ch    tel: +41 22 76 78696
           fax:  +41 22 76 79425        gsm: +41 76 48 70855

 



More information about the gccxml mailing list