Menu

#3 Can't compile 0.3.0 on FC9

0.3.0
open
nobody
5
2008-12-20
2008-12-20
amreg
No

Dowloaded V0.3.0 tarballs (both source and data) on a Fedora Core 9 (can't use the bin installer because incompatible with SELinux).
Tried to compile with scons v0.98.4, gcc/g++ v4.3.0 and fftw V3.2
Command issued : scons datadir=$PWD/data
Here below the resulting output :
[...]
Install binary path: /usr/local/bin
Checking for C library GL... (cached) yes
Checking for C library GLU... (cached) yes
Checking for C library SDL... (cached) yes
Checking for C library SDL_image... (cached) yes
Checking for C library SDL_net... (cached) yes
Checking for C library SDL_mixer... (cached) yes
Checking for C library fftw3... (cached) yes
Checking for C library fftw3f... (cached) no
scons: done reading SConscript files.
scons: Building targets ...
g++ -o build/linux/ai.o -c -msse -Wall `sdl-config --cflags` `pkg-config --cflags x11` -g -O2 -DUSE_SSE -I/usr/include/SDL -I/usr/include/GL src/ai.cpp
In file included from src/game.h:61,
from src/ai.cpp:25:
src/ptrlist.h:53: erreur: ‘std::auto_ptr’ has not been declared
src/ptrlist.h:53: erreur: expected ‘,’ or ‘...’ before ‘<’ token
src/ptrlist.h:57: erreur: ‘std::auto_ptr’ has not been declared
src/ptrlist.h:57: erreur: expected ‘,’ or ‘...’ before ‘<’ token
src/ptrlist.h: In member function ‘void ptrlist<T>::push_back(int)’:
src/ptrlist.h:55: erreur: ‘ptr’ was not declared in this scope
src/ptrlist.h: In member function ‘void ptrlist<T>::push_front(int)’:
src/ptrlist.h:59: erreur: ‘ptr’ was not declared in this scope
src/ptrlist.h: In member function ‘void ptrlist<T>::push_back(T*)’:
src/ptrlist.h:62: erreur: ‘auto_ptr’ is not a member of ‘std’
src/ptrlist.h:62: erreur: expected primary-expression before ‘>’ token
src/ptrlist.h:63: erreur: ‘p’ was not declared in this scope
src/ptrlist.h: In member function ‘void ptrlist<T>::push_front(T*)’:
src/ptrlist.h:66: erreur: ‘auto_ptr’ is not a member of ‘std’
src/ptrlist.h:66: erreur: expected primary-expression before ‘>’ token
src/ptrlist.h:67: erreur: ‘p’ was not declared in this scope
In file included from src/ai.cpp:26:
src/convoy.h: At global scope:
src/convoy.h:48: erreur: ISO C++ forbids declaration of ‘auto_ptr’ with no type
src/convoy.h:48: erreur: invalid use of ‘::’
src/convoy.h:48: erreur: expected ‘;’ before ‘<’ token
src/convoy.h: In member function ‘virtual ai* convoy::get_ai()’:
src/convoy.h:86: erreur: ‘myai’ was not declared in this scope
In file included from src/sea_object.h:27,
from src/ai.cpp:27:
src/ptrvector.h: At global scope:
src/ptrvector.h:68: erreur: ‘std::auto_ptr’ has not been declared
src/ptrvector.h:68: erreur: expected ‘,’ or ‘...’ before ‘<’ token
src/ptrvector.h: In member function ‘void ptrvector<T>::push_back(int)’:
src/ptrvector.h:70: erreur: ‘ptr’ was not declared in this scope
In file included from src/ai.cpp:27:
src/sea_object.h: At global scope:
src/sea_object.h:232: erreur: ISO C++ forbids declaration of ‘auto_ptr’ with no type
src/sea_object.h:232: erreur: invalid use of ‘::’
src/sea_object.h:232: erreur: expected ‘;’ before ‘<’ token
src/sea_object.h: In member function ‘virtual ai* sea_object::get_ai()’:
src/sea_object.h:332: erreur: ‘myai’ was not declared in this scope
src/ptrlist.h: In member function ‘void ptrlist<T>::push_back(T*) [with T = event]’:
src/game.h:336: instantiated from here
src/ptrlist.h:62: erreur: ‘p’ was not declared in this scope
scons: *** [build/linux/ai.o] Error 1
scons: building terminated because of errors.

Hope above excerpts will help to find out.
Regards.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.