0.9.0 does not compile with g++-2.95; it does with g++-3.3.5
Moderator: Forum Moderators
Forum rules
Before reporting issues in this section, you must read the following topic:
Before reporting issues in this section, you must read the following topic:
0.9.0 does not compile with g++-2.95; it does with g++-3.3.5
I noticed this on my Debian testing box (x86).
There were problems with USE_ZIPIOS
I suggest to test this in the configure file.
There were problems with USE_ZIPIOS
I suggest to test this in the configure file.
new test in the configure script
Testing the version of g++ would be enough I guess.
This may not be a minimum requirement though.
The problem was in line 504 ... of filesystem.cpp:
doing again ./configure --prefix=... ; make
with g++-2.95 first in my path yields:
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/X11R6/include -I ./sdl_ttf -I../intl -I../intl -I/usr/include/SDL -D_REENTRANT -DWESNOTH_PATH=\"/home/sbi/prog/wesnoth-0.9.0-g++-2.95/share/wesnoth\" -DLOCALEDIR=\"translations\" -DHAS_RELATIVE_LOCALEDIR=1 -DFIFODIR=\"/home/sbi/prog/wesnoth-0.9.0-g++-2.95/var/run/wesnothd\" -g -O2 -D_X11 -I/usr/X11R6/include -c -o filesystem.o filesystem.cpp
filesystem.cpp: In function `class istream * istream_file(const string &)':
filesystem.cpp:504: `::ios_base' undeclared (first use here)
filesystem.cpp:504: parse error before `::'
filesystem.cpp:513: parse error before `::'
filesystem.cpp: In function `class ostream * ostream_file(const string &)':
filesystem.cpp:519: parse error before `::'
filesystem.cpp: In function `bool file_exists(const string &)':
filesystem.cpp:608: parse error before `::'
filesystem.cpp:609: request for member `rdstate' in `file', which is of non-aggregate type `ifstream ()(...)'
filesystem.cpp:611: request for member `close' in `file', which is of non-aggregate type `ifstream ()(...)'
make[2]: *** [filesystem.o] Error 1
make[2]: Leaving directory `/tmp/wesnoth-0.9.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/wesnoth-0.9.0'
make: *** [all] Error 2
This may not be a minimum requirement though.
The problem was in line 504 ... of filesystem.cpp:
doing again ./configure --prefix=... ; make
with g++-2.95 first in my path yields:
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/X11R6/include -I ./sdl_ttf -I../intl -I../intl -I/usr/include/SDL -D_REENTRANT -DWESNOTH_PATH=\"/home/sbi/prog/wesnoth-0.9.0-g++-2.95/share/wesnoth\" -DLOCALEDIR=\"translations\" -DHAS_RELATIVE_LOCALEDIR=1 -DFIFODIR=\"/home/sbi/prog/wesnoth-0.9.0-g++-2.95/var/run/wesnothd\" -g -O2 -D_X11 -I/usr/X11R6/include -c -o filesystem.o filesystem.cpp
filesystem.cpp: In function `class istream * istream_file(const string &)':
filesystem.cpp:504: `::ios_base' undeclared (first use here)
filesystem.cpp:504: parse error before `::'
filesystem.cpp:513: parse error before `::'
filesystem.cpp: In function `class ostream * ostream_file(const string &)':
filesystem.cpp:519: parse error before `::'
filesystem.cpp: In function `bool file_exists(const string &)':
filesystem.cpp:608: parse error before `::'
filesystem.cpp:609: request for member `rdstate' in `file', which is of non-aggregate type `ifstream ()(...)'
filesystem.cpp:611: request for member `close' in `file', which is of non-aggregate type `ifstream ()(...)'
make[2]: *** [filesystem.o] Error 1
make[2]: Leaving directory `/tmp/wesnoth-0.9.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/wesnoth-0.9.0'
make: *** [all] Error 2
automake dependency
To compile the CVS code, my previous automake
(Debian stable version) failed.
I installed automake-1.9 (Debian testing) and it
worked.
It could be useful to mention the minimal version
required, or to test for it.
(Debian stable version) failed.
I installed automake-1.9 (Debian testing) and it
worked.
It could be useful to mention the minimal version
required, or to test for it.
Re: automake dependency
Anonymous wrote:To compile the CVS code, my previous automake (Debian stable version) failed.
I installed automake-1.9 (Debian testing) and it worked.
It could be useful to mention the minimal version required, or to test for it.
The INSTALL file wrote:The .tar.gz file is distributed with a working set of configure files. They are not in the CVS repository though. Consequently, if you are building from CVS, you will need autoconf (>= 2.59) and automake (>= 1.9).
-
- Posts: 537
- Joined: September 15th, 2003, 2:54 pm
- Location: Sheffield (UK)
- Contact: