* Colin Watson <[EMAIL PROTECTED]> [2003-01-18 19:03]: > On Sat, Jan 18, 2003 at 04:29:09PM +0100, Lukas Ruf wrote: > > trying to compile c++ programs that I developed with gcc 2.9 I get the > > following errors: > > > > ../List/List.o(.text+0xcd): In function `List::~List [not-in-charge]()': > > : undefined reference to `operator delete(void*)' > > gcc 3.x has stricter behaviour than 2.x in certain cases. It looks very > much as if you're trying to link your program using 'gcc', which won't > work; you should use 'g++' instead, which will automatically pull in the > stdc++ library. >
yeah. Thanks for the hint, it worked. However, I think this is a quite stupid behaviour of gcc 3.x -- it should automagically call the correct compiler/linker depending on the extension provided. Long time ago, I learned *.cc was c++, *.c was c -- obviously this does not hold anymore. Anyway, thanks! wbr, Lukas -- Lukas Ruf http://www.lpr.ch Wanna know anything about raw ip? Join [EMAIL PROTECTED] on http://www.rawip.org -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]