I have taken the opensoruce from
~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 -DC_GCC_C -DC_GCCBJC
-DC_GCC_CPP -fPIC -D_GNU_SURCE -DC_GNUSTEP -DC_LITTLE_ENDIAN
-DDEBUG
-DDINDICATIN_DIR=\"/var/cache/pegasus\" -g
"-DCM_WHATSTRING=\"evtfrmw IndicationProvider


\"" -fpermissive

-I/opt/tog-pegasus/include

-c -o

In file included from
/
am:640,
from
,
from

/
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)':
/
sstream.tcc:104: error: expected unqualified-id before '(' token
cons: []
Error 1
cons: errors constructing


Can anybody encounted this problem? Any idea where to fix this problem?

I have found the same error reported by somebody on Solaris
with
no responses

Thanks in Advance

g++ -Wno-trigraphs -Wno-unused -Wno-deprecated -Wpointer-arith

Why are you posting C++ in the C forum?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.