help-gnucap
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-gnucap] Compile problems with GCC 4.1.1


From: Daniel Kraft
Subject: [Help-gnucap] Compile problems with GCC 4.1.1
Date: Sat, 24 Jun 2006 22:18:39 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.4) Gecko/20060517 SeaMonkey/1.0.2

Hi!

I've just tried to compile gnucap-0.31 (as far as I know the latest code available) here on my system (Linux 2.6.16.19, glibc 2.4, GCC 4.1.1); I get a lot of strange errors:

(cd modelgen; make -k)
make[1]: Entering directory `/usr/src/gnucap-0.31/modelgen'
mkdir O
mkdir: cannot create directory `O': File exists
make[1]: [g++] Error 1 (ignored)
cat Make1 Make2.g++ Make3 Make.depend >O/Makefile
(cd O; make -k)
make[2]: Entering directory `/usr/src/gnucap-0.31/modelgen/O'
g++ -DUNIX -O2 -DNDEBUG -I.. -I. -fno-exceptions -W -c ../mg_main.cc
../mg_.h:94: error: type 'std::list<T*, std::allocator<T*> >' is not derived from type 'List_Base<T>'
../mg_.h:94: error: expected ';' before 'const_iterator'
../mg_.h:95: error: 'const_iterator' does not name a type
../mg_.h:96: error: 'const_iterator' does not name a type
../mg_.h: In destructor 'virtual List_Base<T>::~List_Base()':
../mg_.h:89: error: expected `;' before 'i'
../mg_.h:89: error: 'i' was not declared in this scope
../mg_.h: At global scope:
../mg_.h:339: error: 'const_iterator' in class 'Arg_List' does not name a type
../mg_.h:340: error: 'const_iterator' does not name a type
../mg_.h:341: error: 'const_iterator' does not name a type
../mg_.h: In destructor 'List_Base<T>::~List_Base() [with T = Port]':
../mg_.h:104:   instantiated from here
../mg_.h:89: error: dependent-name 'std::list<T*,std::allocator<T*> >::iterator' is parsed as a non-type, but instantiation yields a type ../mg_.h:89: note: say 'typename std::list<T*,std::allocator<T*> >::iterator' if a type is meant
../mg_.h: In destructor 'List_Base<T>::~List_Base() [with T = Arg]':
../mg_.h:104:   instantiated from here
../mg_.h:89: error: dependent-name 'std::list<T*,std::allocator<T*> >::iterator' is parsed as a non-type, but instantiation yields a type ../mg_.h:89: note: say 'typename std::list<T*,std::allocator<T*> >::iterator' if a type is meant
../mg_.h: In destructor 'List_Base<T>::~List_Base() [with T = Element]':
../mg_.h:111:   instantiated from here
../mg_.h:89: error: dependent-name 'std::list<T*,std::allocator<T*> >::iterator' is parsed as a non-type, but instantiation yields a type ../mg_.h:89: note: say 'typename std::list<T*,std::allocator<T*> >::iterator' if a type is meant
../mg_.h: In destructor 'List_Base<T>::~List_Base() [with T = Args]':
../mg_.h:111:   instantiated from here
../mg_.h:89: error: dependent-name 'std::list<T*,std::allocator<T*> >::iterator' is parsed as a non-type, but instantiation yields a type ../mg_.h:89: note: say 'typename std::list<T*,std::allocator<T*> >::iterator' if a type is meant
../mg_.h: In destructor 'List_Base<T>::~List_Base() [with T = Key]':
../mg_.h:104:   instantiated from here
../mg_.h:89: error: dependent-name 'std::list<T*,std::allocator<T*> >::iterator' is parsed as a non-type, but instantiation yields a type ../mg_.h:89: note: say 'typename std::list<T*,std::allocator<T*> >::iterator' if a type is meant

And a lot more... Is this because of GCC 4? I've already had some "problems" because of that.

Many thanks in advance,
yours,
Daniel Kraft




reply via email to

[Prev in Thread] Current Thread [Next in Thread]