[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: sid: gcc (GCC) 3.2.2 20030109 (Debian prerelease) strange!



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.

Cheers,

-- 
Colin Watson                                  [cjwatson@flatline.org.uk]



Reply to: