Celestia 1.3.2 build fails with gcc 3.4.1
Posted: 05.09.2004, 16:56
Hi.
I tried to compile the gtk2 version of celetia 1.3.2 with gcc 3.4.1. If fails with the following messages:
g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I.. -Wnon-virtual-dtor -Wno-long-long -W
undef -Wall -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -ansi -D_XOP
EN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -DNDEBUG -DNO_DEBUG -O2 -O
2 -fomit-frame-pointer -pipe -fno-exceptions -fno-check-new -O2 -Wall -ffast-ma
th -fexpensive-optimizations -fomit-frame-pointer -I/usr/include/gtk-2.0 -I/usr/
lib/gtk-2.0/include -I/usr/X11R6/include -I/usr/include/atk-1.0 -I/usr/include/p
ango-1.0 -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/in
clude -I/usr/include/gtkglext-1.0 -I/usr/lib/gtkglext-1.0/include -c -o bound
aries.o `test -f 'boundaries.cpp' || echo './'`boundaries.cpp
cc1plus: warning: command line option "-Wmissing-prototypes" is valid for C/ObjC
but not for C++
../celutil/resmanager.h: In member function `typename T::ResourceType* ResourceM
anager<T>::find(ResourceHandle) [with T = ModelInfo]':
body.cpp:575: instantiated from here
../celutil/resmanager.h:108: error: dependent-name `std::map<std::string, typena
me T::ResourceType*, std::less<std::string>, std::allocator<std::pair<const std:
:string, typename T::ResourceType*> > >::value_type' is parsed as a non-type, bu
t instantiation yields a type
../celutil/resmanager.h:108: note: say `typename std::map<std::string, typename
T::ResourceType*, std::less<std::string>, std::allocator<std::pair<const std::st
ring, typename T::ResourceType*> > >::value_type' if a type is meant
make[3]: *** [body.o] Error 1
Any ideas?
Thanks,
Jens
I tried to compile the gtk2 version of celetia 1.3.2 with gcc 3.4.1. If fails with the following messages:
g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I.. -Wnon-virtual-dtor -Wno-long-long -W
undef -Wall -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -ansi -D_XOP
EN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -DNDEBUG -DNO_DEBUG -O2 -O
2 -fomit-frame-pointer -pipe -fno-exceptions -fno-check-new -O2 -Wall -ffast-ma
th -fexpensive-optimizations -fomit-frame-pointer -I/usr/include/gtk-2.0 -I/usr/
lib/gtk-2.0/include -I/usr/X11R6/include -I/usr/include/atk-1.0 -I/usr/include/p
ango-1.0 -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/in
clude -I/usr/include/gtkglext-1.0 -I/usr/lib/gtkglext-1.0/include -c -o bound
aries.o `test -f 'boundaries.cpp' || echo './'`boundaries.cpp
cc1plus: warning: command line option "-Wmissing-prototypes" is valid for C/ObjC
but not for C++
../celutil/resmanager.h: In member function `typename T::ResourceType* ResourceM
anager<T>::find(ResourceHandle) [with T = ModelInfo]':
body.cpp:575: instantiated from here
../celutil/resmanager.h:108: error: dependent-name `std::map<std::string, typena
me T::ResourceType*, std::less<std::string>, std::allocator<std::pair<const std:
:string, typename T::ResourceType*> > >::value_type' is parsed as a non-type, bu
t instantiation yields a type
../celutil/resmanager.h:108: note: say `typename std::map<std::string, typename
T::ResourceType*, std::less<std::string>, std::allocator<std::pair<const std::st
ring, typename T::ResourceType*> > >::value_type' if a type is meant
make[3]: *** [body.o] Error 1
Any ideas?
Thanks,
Jens