Re: [tecomp] Error when compile tecomp
Status: Beta
Brought to you by:
helmut_brandl
From: Helmut B. <hel...@gm...> - 2008-08-25 13:19:40
|
Hello David, the debian installation of gcc seems to have less implicit includes than the gcc installation on other unices. Another user has already reported the problem. The fix is easy. Just add #include <memory> #include <algorithm> in the corresponding files (inheritance.h, generic.h, body.h) as the last #includes. The error in class_collection.h at line 305: The first argument has to be named a like clients_t combined(const clients_t& a, const clients_t& b) const; It is a typo, but my gcc does not complain. The errors are already fixed in the code, which will go into the next release coming soon. The warnings your compiler complains about I do not understand. From my knowledge of C/C++ the "&&" operator has higher precedence than the "||" operator. Parentheses should not be necessary. Try to add the #includes and I am pretty shure that gcc will compile tecomp. Hope this resolves the problem. Regards Helmut Come David wrote: > Hello. > > I'm trying to compile tecomp on Debian Sid with g++ 4.3.1. > When I compile I've got a lot of errors. > > david@debian:~/eiffel/tecomp$ make tecomp > In file included from class_include.h:12, > from class.cpp:6: > feature_name.h: In member function ‘bool feature_name_t::class_invariant() > const’: > feature_name.h:95: warning: suggest parentheses around && within || > feature_name.h:97: warning: suggest parentheses around && within || > feature_name.h:99: warning: suggest parentheses around && within || > In file included from ../../cal/src/container/char_string.h:9, > from type.h:16, > from class_include.h:17, > from class.cpp:6: > ../../cal/src/container/char_string_buffer.h: In member function ‘bool > char_string_buffer_t::class_invariant() const’: > ../../cal/src/container/char_string_buffer.h:40: warning: suggest > parentheses around && within || > In file included from class_include.h:20, > from class.cpp:6: > inheritance.h: In member function ‘void > parent_parts_t::extend(source_type_t)’: > inheritance.h:231: error: ‘auto_ptr’ is not a member of ‘std’ > inheritance.h:231: error: expected primary-expression before ‘>’ token > inheritance.h:231: error: ‘ap’ was not declared in this scope > In file included from class_include.h:23, > from class.cpp:6: > body.h: In member function ‘uint declaration_group_t::index(const > feature_name_t&) const’: > body.h:336: error: ‘find’ was not declared in this scope > In file included from class_include.h:26, > from class.cpp:6: > generic.h: In member function ‘bool formal_generics_t::has(const > std::string&) const’: > generic.h:96: error: ‘find’ is not a member of ‘std’ > generic.h: In member function ‘uint formal_generics_t::index(const > std::string&) const’: > generic.h:113: error: ‘find’ is not a member of ‘std’ > generic.h: In member function ‘uint generic_substitutions_t::index(const > generic_substitution_t&) const’: > generic.h:268: error: ‘find’ is not a member of ‘std’ > In file included from class_include.h:28, > from class.cpp:6: > class.h: In member function ‘bool > class_t::is_valid_feature(feature_number_t) const’: > class.h:444: warning: suggest parentheses around && within || > In file included from class_include.h:31, > from class.cpp:6: > class_collection.h: At global scope: > class_collection.h:305: error: multiple parameters named ‘b’ > > Does it's my configuration or the code/makefile ? > Thanks. > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Tecomp-user mailing list > Tec...@li... > https://lists.sourceforge.net/lists/listinfo/tecomp-user > |