Debian woody and gcc 3.0 unresolved symbol "new" with c++ program

hanasaki hanasaki at hanaden.com
Fri Feb 8 05:57:04 CST 2002


I am getting the following errors when gcc links the program I am
compiling.  What libs do I need to make the linker happy?

errors:
/tmp/ccgPzIMj.o: In function `main':
/tmp/ccgPzIMj.o(.text+0xf): undefined reference to `operator new(unsigned)'
/tmp/ccgPzIMj.o(.text+0x3a): undefined reference to `operator delete(void*)'
/tmp/ccgPzIMj.o: In function
`__static_initialization_and_destruction_0(int, int)':
/tmp/ccgPzIMj.o(.text+0x7a): undefined reference to
`std::ios_base::Init::Init()'
/tmp/ccgPzIMj.o: In function `__tcf_0':
/tmp/ccgPzIMj.o(.text+0xdb): undefined reference to
`std::ios_base::Init::~Init()'
/tmp/ccgPzIMj.o(.gnu.linkonce.d._ZTI1A+0x0): undefined reference to
`vtable for __cxxabiv1::__class_type_info'
/tmp/ccgPzIMj.o: In function `A::name()':
/tmp/ccgPzIMj.o(.gnu.linkonce.t._ZN1A4nameEv+0x17): undefined reference
to `std::cout'
<--- alot more --->

I have the following installed:
	libstdc++2.10-glibc2.2                          install
	libstdc++3                                      install
	libstdc++3-dbg                                  install
	libstdc++3-dev                                  install
	libstdc++3-doc                                  install
	cpp-3.0                                         install

-- 
hanasaki at hanaden.com
	Spam : def: It's not kosher.

-- 
To UNSUBSCRIBE, email to debian-user-request at lists.debian.org
with a subject of "unsubscribe". Trouble? Contact 
listmaster at lists.debian.org




More information about the Kclug mailing list