RE: GCC 3 C++ linking issue

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

 



Are you linking your program with gcc or g++? You should be using g++ since you are using some C++ in the program.

Cheers,
Lyle

-----Original Message-----
From: gcc-help-owner@xxxxxxxxxxx [mailto:gcc-help-owner@xxxxxxxxxxx]On
Behalf Of Oliver Lange
Sent: Friday, December 05, 2003 3:38 AM
To: gcc-help@xxxxxxxxxxx
Subject: GCC 3 C++ linking issue


Hello everyone,

I'm compiling a project with GCC 3.23-r3 for the very first time;
i previously used GCC 2.95.3.

While my project compiles & links well under GCC 2, my first try
to use GCC 3 failed at the linker stage with some error msgs like:

warning: undefined reference to `operator new(unsigned)'
warning: undefined reference to `operator delete(void*)'

These errors are thrown by a C function that makes use of a
C++ class. However, with GCC2 everything went fine.

Any ideas ?



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux