* GCC 3 C++ linking issue
@ 2003-12-05 10:38 Oliver Lange
0 siblings, 0 replies; 2+ messages in thread
From: Oliver Lange @ 2003-12-05 10:38 UTC (permalink / raw)
To: gcc-help
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 ?
^ permalink raw reply [flat|nested] 2+ messages in thread
* RE: GCC 3 C++ linking issue
@ 2003-12-05 17:04 lrtaylor
0 siblings, 0 replies; 2+ messages in thread
From: lrtaylor @ 2003-12-05 17:04 UTC (permalink / raw)
To: bloodrock, gcc-help
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@gcc.gnu.org [mailto:gcc-help-owner@gcc.gnu.org]On
Behalf Of Oliver Lange
Sent: Friday, December 05, 2003 3:38 AM
To: gcc-help@gcc.gnu.org
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 ?
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-12-05 17:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-12-05 10:38 GCC 3 C++ linking issue Oliver Lange
2003-12-05 17:04 lrtaylor
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).