bug-commoncpp
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CommonC++-1.5.0 with gcc-3.0 bug (and fix)


From: Brad Harvell
Subject: CommonC++-1.5.0 with gcc-3.0 bug (and fix)
Date: Fri, 29 Jun 2001 04:20:29 -0700

i have identified and found a fix for a bug in CommonC++-1.5.0
with gcc-3.0. 

grabbed CommonC++ from ftp://www.voxilla.org/pub/bayonne/

add #include <iostream.h> to posix/serial.cpp and posix/fifo.cpp.
gcc-3.0 doesn't seem to like ios::* without the include, tho
2.95.3 was satisfied as was.

after this fix, it compiles fine.


details:

# gcc -v
Reading specs from /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.0/specs
Configured with: ./configure --enable-threads --enable-shared
Thread model: posix
gcc version 3.0

# ./configure;make
[.....]
c++ -DHAVE_CONFIG_H -I. -I. -I. -I../posix -g -O2 -D_GNU_SOURCE -D_REENTRANT 
-D_THREAD_SAFE -c  -fPIC -DPIC serial.cpp -o .libs/serial.lo
serial.cpp: In member function `virtual int TTYStream::uflow()':
serial.cpp:627: `ios' undeclared (first use this function)
serial.cpp:627: (Each undeclared identifier is reported only once for each 
   function it appears in.)
serial.cpp:627: parse error before `::' token
serial.cpp:638: confused by earlier errors, bailing out
make[1]: *** [serial.lo] Error 1
make[1]: Leaving directory `/usr/src/CommonC++-1.5.0/posix'
make: *** [all-recursive] Error 1
[...]
c++ -DHAVE_CONFIG_H -I. -I. -I. -I../posix -g -O2 -D_GNU_SOURCE -D_REENTRANT 
-D_THREAD_SAFE -c  -fPIC -DPIC fifo.cpp -o .libs/fifo.lo
fifo.cpp: In member function `void fifostream::open(const char*, long int)':
fifo.cpp:89: `ios' undeclared (first use this function)
fifo.cpp:89: (Each undeclared identifier is reported only once for each 
   function it appears in.)
fifo.cpp:89: parse error before `::' token
fifo.cpp: In constructor `cc_FIFOSession::cc_FIFOSession(const char*, long int, 
   cc_Semaphore*, int, int)':
fifo.cpp:113: parse error before `::' token
make[1]: *** [fifo.lo] Error 1
make[1]: Leaving directory `/usr/src/CommonC++-1.5.0/posix'
make: *** [all-recursive] Error 1



reply via email to

[Prev in Thread] Current Thread [Next in Thread]