FW: error: expected unqualified-id before '(' token with gcc 3.4.3

Hegde, Ramesh rameshh@hp.com
Mon Jul 25 11:06:00 GMT 2005


 
Hello 
 
I have taken the opensoruce from
http://www-personal.engin.umich.edu/~wagnerr/ConfigFile.html for reading
configuration file. It perfectly works fine with gcc 3.2.3 and it fail
to compile with gcc 3.4.3 on RHEL 4
 
I am getting following error
 
g++ -Wno-trigraphs -Wno-unused -Wno-deprecated -Wpointer-arith
-fno-common -fno-strict-aliasing -fexceptions -DOC_GCC_C -DOC_GCC_OBJC
-DOC_GCC_CPP -fPIC -D_GNU_SOURCE -DOC_GNUSTEP -DOC_LITTLE_ENDIAN
-DPEGASUS_PLATFORM_LINUX_IX86_GNU -DDEBUG
-DDINDICATION_DIR=\"/var/cache/pegasus\" -O -g -O2
"-DCM_WHATSTRING=\"evtfrmw IndicationProvider
CM_WHATSTRING_PLACEHOLDER_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\"" -fpermissive
-I/opt/OC/OCSDK_supportability_W8_00/include
-I/opt/OC/OCSDK_supportability_W6_00/include -I/opt/tog-pegasus/include
-Ibuild/evtfrmw/code/IndicationProvider -Imod_exp/evtfrmw/export/libAis
-c build/evtfrmw/code/IndicationProvider/OCEventProvider.cpp -o
build/evtfrmw/code/IndicationProvider/OCEventProvider.o
In file included from
/usr/lib/gcc/i386-redhat-linux/3.4.3/../../../../include/c++/3.4.3/sstre
am:640,
                 from
build/evtfrmw/code/IndicationProvider/ConfigFile.h:50,
                 from
build/evtfrmw/code/IndicationProvider/OCEventProvider.cpp:12:
/usr/lib/gcc/i386-redhat-linux/3.4.3/../../../../include/c++/3.4.3/bits/
sstream.tcc: In member function `virtual typename
std::basic_stringbuf<_CharT, _Traits, _Alloc>::int_type
std::basic_stringbuf<_CharT, _Traits, _Alloc>::overflow(typename
_Traits::int_type)':
/usr/lib/gcc/i386-redhat-linux/3.4.3/../../../../include/c++/3.4.3/bits/
sstream.tcc:104: error: expected unqualified-id before '(' token
cons: *** [build/evtfrmw/code/IndicationProvider/OCEventProvider.o]
Error 1
cons: errors constructing
build/evtfrmw/code/IndicationProvider/OCEventProvider.o

Can anybody encounted this problem? Any idea where to fix this problem? 
 
I have found the same error reported by somebody on Solaris
http://www.opensolaris.org/jive/thread.jspa?threadID=974&tstart=0 with
no responses
 
Thanks in Advance
 
Regards
Ramesh



More information about the Gcc-help mailing list