Help! Newbie question switching from g++ to egcs

Gordon Neal gneal@ichips.intel.com
Tue Mar 9 14:18:00 GMT 1999


I get the following errors when compiling for egcs using STL.
objects.o: In function `list<SECTION, __default_alloc_template<true, 0>
>::empty_initialize(void)':
/usr/include/g++/stl_list.h(.__malloc_alloc_template<0>::gnu.linkonce.t.oom_
malloc(unsigned int)+0x17): undefined reference to `endl(ostream &)'
/usr/include/g++/stl_list.h(.__malloc_alloc_template<0>::gnu.linkonce.t.oom_
malloc(unsigned int)+0x21): undefined reference to `cerr'
/usr/include/g++/stl_list.h(.__malloc_alloc_template<0>::gnu.linkonce.t.oom_
malloc(unsigned int)+0x26): undefined reference to `ostream::operator<<(char
const *)'
/usr/include/g++/stl_list.h(.__malloc_alloc_template<0>::gnu.linkonce.t.oom_
malloc(unsigned int)+0x31): undefined reference to
`ostream::operator<<(ostream &(*)(ostream &))'
collect2: ld returned 1 exit status
make: *** [mprand] Error 1

Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.90.29/specs
gcc version egcs-2.90.29 980515 (egcs-1.0.3 release)

my LIBRARY_PATH variable is not set. Is this a libg++ issue?

Thankyou
Gordon



More information about the Gcc mailing list