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

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



* Colin Watson <cjwatson@debian.org> [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 rawip@rawip.org on http://www.rawip.org



Reply to: