You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4cxx-user@logging.apache.org by Zach Bodnar <zb...@gmail.com> on 2004/09/30 22:25:42 UTC

gcc version incompatibility

I'm trying to build log4cxx with gcc 2.95.3 and I'm getting the error:

/bin/sh ../libtool --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H -I.
-I. -I../include/log4cxx -I../include -I/usr/include/libxml2 
-D_REENTRANT  -g -O2 -c -o appenderattachableimpl.lo
appenderattachableimpl.cpp
 g++ -DHAVE_CONFIG_H -I. -I. -I../include/log4cxx -I../include
-I/usr/include/libxml2 -D_REENTRANT -g -O2 -c
appenderattachableimpl.cpp -Wp,-MD,.deps/appenderattachableimpl.TPlo 
-fPIC -DPIC -o .libs/appenderattachableimpl.o
In file included from appenderattachableimpl.cpp:17:
../include/log4cxx/helpers/tchar.h:27: streambuf: No such file or directory
make[1]: *** [appenderattachableimpl.lo] Error 1
make[1]: Leaving directory `/devdisk1/zbodnar/log4cxx-0.9.7/src'
make: *** [all-recursive] Error 1

Has anybody seen this or have any ideas about how to get around it.?

Re: gcc version incompatibility

Posted by Curt Arnold <ca...@houston.rr.com>.
> Has anybody seen this or have any ideas about how to get around it.?
>

Try replacing

#include <streambuf>

with

#include <sstream>

and let the list knows if that fixes the problem.  streambuf is a 
lower-level include file that is implied in the much more frequently 
used sstream include file.