Compilation problem on Fedora Core 4
Posted: 04.07.2005, 09:36
Hello,
Celestia 1.3.2 does not compile on Fedora Core 4. My compiler is gcc 4.0:
Compilation stops with the following error:
Best regards,
Peter
Celestia 1.3.2 does not compile on Fedora Core 4. My compiler is gcc 4.0:
Code: Select all
gcc --version
gcc (GCC) 4.0.0 20050519 (Red Hat 4.0.0-8)
Copyright (C) 2005 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Compilation stops with the following error:
Code: Select all
g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I.. -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -DNDEBUG -DNO_DEBUG -O2 -fno-exceptions -fno-check-new -O2 -Wall -ffast-math -fexpensive-optimizations -fomit-frame-pointer -c -o body.o `test -f 'body.cpp' || echo './'`body.cpp
cc1plus: warning: command line option "-Wmissing-prototypes" is valid for Ada/C/ObjC but not for C++
../celengine/model.h:67: warning: 'class Model::MeshComparator' has virtual functions but non-virtual destructor
../celengine/model.h:85: warning: 'class Model::OpacityComparator' has virtual functions but non-virtual destructor
../celengine/orbit.h:19: warning: 'class Orbit' has virtual functions but non-virtual destructor
../celengine/orbit.h:35: warning: 'class EllipticalOrbit' has virtual functions but non-virtual destructor
../celengine/orbit.h:62: warning: 'class OrbitSampleProc' has virtual functions but non-virtual destructor
../celengine/orbit.h:77: warning: 'class CachingOrbit' has virtual functions but non-virtual destructor
../celutil/resmanager.h: In member function 'typename T::ResourceType* ResourceManager<T>::find(ResourceHandle) [with T = ModelInfo]':
body.cpp:575: instantiated from here
../celutil/resmanager.h:108: error: dependent-name 'std::map<std::basic_string<char, std::char_traits<char>, std::allocator<char> >,typename T::ResourceType*,std::less<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >,std::allocator<std::pair<const std::basic_string<char, std::char_traits<char>, std::allocator<char> >, typename T::ResourceType*> > >::value_type' is parsed as a non-type, but instantiation yields a type
../celutil/resmanager.h:108: note: say 'typename std::map<std::basic_string<char, std::char_traits<char>, std::allocator<char> >,typename T::ResourceType*,std::less<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >,std::allocator<std::pair<const std::basic_string<char, std::char_traits<char>, std::allocator<char> >, typename T::ResourceType*> > >::value_type' if a type is meant
make[3]: *** [body.o] Error 1
Best regards,
Peter