Originally the GCC 2.96 code was the default, but since GCC 3 is no longer
backwards compatabile with GCC 2.9x, and almost everyone has upgraded now,
the proper version that compiles with GCC 3 and MSVC6 and later is used.
You need to enable the old C++ compatibility mode of the GNE library in
order to fix these problems. On the g++ command line the -DOLD_CPP=1
parameter needs to be given. In the makefile system you should be able to
do it with make:
make OLD_CPP=1
Originally OLD_CPP mode was default but OLD_CPP won't compile with GCC 3
now so the new version is default.
This is the last version of GNE that will be officially supporting GCC
versions prior to GCC 3 (through my support). It is too much trouble for
me as one person working on the last year of his degree to support 11
compilers so I have dropped quite a few, the biggest one for GNE 0.70 was
drop for MSVC6 support, because of a bug I could not workaround for MSVC6
without seriously compromising the API. The next release will deprecate
support for MingW 1.0 and 2.0 (leaving 3.0 as supported) and GCC versions
prior to 3 under Linux, but it may still compile.
If you or anyone else is interested in maintaining any and all ports --
basically all you need to do is make sure the CVS version is compiling and
working on your machine, please let me know, so I won't have to drop GCC
2.9x support.
Jason
On 24 Sep 2003 at 12:25, Aaron Dalton wrote:
> I am using gcc version 2.96 20000731 (Mandrake Linux 8.1 2.96-0.62mdk). I
> have successfully installed min_boost and HawkNL and am now trying to make
> gnelib. Everything compiles just fine (with some very minor
> adjustments) until I get to Console.cpp. I am not an expert C++-man so
> I'm not quite sure how to fix this problem. Any help would be greatly
> appreciated. Below is the error I'm getting. It appears to not
> like the type "int_type". Thanks so much for your time.
>
> --
> Aaron Dalton
> aa...@fi...
> http://aaron.finch.st
>
> [root@chariss gnelib-0.70]# make
> g++ -c -o src/Console.o -MMD -Wall -Iinclude -I/usr/include -O3 -s
> -I/usr/local -I/usr/local/include -D_XOPEN_SOURCE=500 src/Console.cpp
> In file included from /usr/include/iostream.h:31,
> from /usr/include/stream.h:33,
> from /usr/include/ostream.h:25,
> from src/Console.cpp:21:
> /usr/include/streambuf.h: In method `ios::~ios ()':
> /usr/include/streambuf.h:485: warning: deleting `void *' is undefined
>
> In file included from include/gnelib/Console.h:24,
> from src/Console.cpp:28:
> include/gnelib/ConsoleStreambuf.h: At top level:
> include/gnelib/ConsoleStreambuf.h:47: syntax error before `('
> include/gnelib/ConsoleStreambuf.h:77: syntax error before `('
> include/gnelib/ConsoleStreambuf.h:78: parse error before `*'
> make: *** [src/Console.o] Error 1
> [root@chariss gnelib-0.70]#
>
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Gnelib-users mailing list
> Gne...@li...
> https://lists.sourceforge.net/lists/listinfo/gnelib-users
|