[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[coldsync-hackers] Compile problems
Hi,
while at home with redhats gcc-2.96, the compile of 2.2.5 went fine, at work
with gcc-2.95.3, i am unable to link 2.2.5 nor 2.3.0-xxx. The linker messages
are attached. All the problems are within symboltable.o.
Using gcc-3.0.1 already fails while trying to compile symboltable.cc, these
error messages are attached as well.
For some reason gcc does not like symboltable.cc ... I am no c++ guru and
most of symboltables problems seem to be related to the c++ stuff in there.
Regards,
Till
symboltable.o: In function `basic_string<char, string_char_traits<char>, __default_alloc_template<true, 0> >::compare(basic_string<char, string_char_traits<char>, __default_alloc_template<true, 0> > const &, unsigned int, unsigned int) const':
symboltable.o(.basic_string<char, string_char_traits<char>, __default_alloc_template<true, 0> >::gnu.linkonce.t.compare(basic_string<char, string_char_traits<char>, __default_alloc_template<true, 0> > const &, unsigned int, unsigned int) const+0x2c): undefined reference to `__out_of_range(char const *)'
symboltable.o(.basic_string<char, string_char_traits<char>, __default_alloc_template<true, 0> >::gnu.linkonce.t.compare(basic_string<char, string_char_traits<char>, __default_alloc_template<true, 0> > const &, unsigned int, unsigned int) const+0xb3): undefined reference to `string_char_traits<char>::compare(char const *, char const *, unsigned int)'
symboltable.o: In function `__malloc_alloc_template<0>::_S_oom_malloc(unsigned int)':
symboltable.o(.__malloc_alloc_template<0>::gnu.linkonce.t._S_oom_malloc(unsigned int)+0x1a): undefined reference to `endl(ostream &)'
symboltable.o(.__malloc_alloc_template<0>::gnu.linkonce.t._S_oom_malloc(unsigned int)+0x27): undefined reference to `cerr'
symboltable.o(.__malloc_alloc_template<0>::gnu.linkonce.t._S_oom_malloc(unsigned int)+0x2c): undefined reference to `ostream::operator<<(char const *)'
symboltable.o(.__malloc_alloc_template<0>::gnu.linkonce.t._S_oom_malloc(unsigned int)+0x37): undefined reference to `ostream::operator<<(ostream &(*)(ostream &))'
symboltable.o: In function `basic_string<char, string_char_traits<char>, __default_alloc_template<true, 0> >::Rep::copy(unsigned int, char const *, unsigned int)':
symboltable.o(.basic_string<char, string_char_traits<char>, __default_alloc_template<true, 0> >::Rep::gnu.linkonce.t.copy(unsigned int, char const *, unsigned int)+0x33): undefined reference to `string_char_traits<char>::copy(char *, char const *, unsigned int)'
symboltable.o: In function `basic_string<char, string_char_traits<char>, __default_alloc_template<true, 0> >::compare(char const *, unsigned int, unsigned int) const':
symboltable.o(.basic_string<char, string_char_traits<char>, __default_alloc_template<true, 0> >::gnu.linkonce.t.compare(char const *, unsigned int, unsigned int) const+0x2c): undefined reference to `__out_of_range(char const *)'
symboltable.o(.basic_string<char, string_char_traits<char>, __default_alloc_template<true, 0> >::gnu.linkonce.t.compare(char const *, unsigned int, unsigned int) const+0x7b): undefined reference to `string_char_traits<char>::compare(char const *, char const *, unsigned int)'
symboltable.o: In function `basic_string<char, string_char_traits<char>, __default_alloc_template<true, 0> >::Rep::move(unsigned int, char const *, unsigned int)':
symboltable.o(.basic_string<char, string_char_traits<char>, __default_alloc_template<true, 0> >::Rep::gnu.linkonce.t.move(unsigned int, char const *, unsigned int)+0x33): undefined reference to `string_char_traits<char>::move(char *, char const *, unsigned int)'
symboltable.o: In function `basic_string<char, string_char_traits<char>, __default_alloc_template<true, 0> >::replace(unsigned int, unsigned int, char const *, unsigned int)':
symboltable.o(.basic_string<char, string_char_traits<char>, __default_alloc_template<true, 0> >::gnu.linkonce.t.replace(unsigned int, unsigned int, char const *, unsigned int)+0x31): undefined reference to `__out_of_range(char const *)'
symboltable.o(.basic_string<char, string_char_traits<char>, __default_alloc_template<true, 0> >::gnu.linkonce.t.replace(unsigned int, unsigned int, char const *, unsigned int)+0x8e): undefined reference to `__length_error(char const *)'
symboltable.o: In function `basic_string<char, string_char_traits<char>, __default_alloc_template<true, 0> >::copy(char *, unsigned int, unsigned int) const':
symboltable.o(.basic_string<char, string_char_traits<char>, __default_alloc_template<true, 0> >::gnu.linkonce.t.copy(char *, unsigned int, unsigned int) const+0x2c): undefined reference to `__out_of_range(char const *)'
symboltable.o(.basic_string<char, string_char_traits<char>, __default_alloc_template<true, 0> >::gnu.linkonce.t.copy(char *, unsigned int, unsigned int) const+0x85): undefined reference to `string_char_traits<char>::copy(char *, char const *, unsigned int)'
symboltable.o: In function `basic_string<char, string_char_traits<char>, __default_alloc_template<true, 0> >::compare(char const *, unsigned int) const':
symboltable.o(.basic_string<char, string_char_traits<char>, __default_alloc_template<true, 0> >::gnu.linkonce.t.compare(char const *, unsigned int) const+0x17): undefined reference to `string_char_traits<char>::length(char const *)'
symboltable.o: In function `basic_string<char, string_char_traits<char>, __default_alloc_template<true, 0> >::terminate(void) const':
symboltable.o(.basic_string<char, string_char_traits<char>, __default_alloc_template<true, 0> >::gnu.linkonce.t.terminate(void) const+0x46): undefined reference to `string_char_traits<char>::assign(char &, char const &)'
symboltable.o: In function `basic_string<char, string_char_traits<char>, __default_alloc_template<true, 0> >::assign(char const *)':
symboltable.o(.basic_string<char, string_char_traits<char>, __default_alloc_template<true, 0> >::gnu.linkonce.t.assign(char const *)+0x16): undefined reference to `string_char_traits<char>::length(char const *)'
symboltable.o: In function `basic_string<char, string_char_traits<char>, __default_alloc_template<true, 0> >::eos(void)':
symboltable.o(.basic_string<char, string_char_traits<char>, __default_alloc_template<true, 0> >::gnu.linkonce.t.eos(void)+0x7): undefined reference to `string_char_traits<char>::eos(void)'
collect2: ld returned 1 exit status
make[1]: *** [coldsync] Error 1
symboltable.cc:16: parse error before `&' token
symboltable.cc:18: `string' was not declared in this scope
symboltable.cc:18: `string' was not declared in this scope
symboltable.cc:18: 'map' is used as a type, but is not defined as a type.
symboltable.cc:45: parse error before `&' token
symboltable.cc: In function `char* get_symbol(const char*)':
symboltable.cc:69: `string' undeclared (first use this function)
symboltable.cc:69: (Each undeclared identifier is reported only once for each
function it appears in.)
symboltable.cc:69: parse error before `(' token
symboltable.cc:70: `key' undeclared (first use this function)
symboltable.cc: At global scope:
symboltable.cc:78: parse error before `&' token
symboltable.cc: In function `char* make_c_string(...)':
symboltable.cc:80: `s' undeclared (first use this function)
symboltable.cc: In function `char* get_symbol_n(const char*, int)':
symboltable.cc:100: parse error before `(' token
symboltable.cc: In function `void put_symbol(const char*, const char*)':
symboltable.cc:111: `table' undeclared (first use this function)
make[1]: *** [symboltable.o] Error 1