This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: ..comiling c++ code with gcc
- From: Claudio Bley <bley at cs dot uni-magdeburg dot de>
- To: nutrina999 at yahoo dot com
- Cc: gcc-help at gcc dot gnu dot org
- Date: Mon, 20 Oct 2003 17:26:32 +0200
- Subject: Re: ..comiling c++ code with gcc
- References: <20031020145346.10426.qmail@web40907.mail.yahoo.com>
On Mon, Oct 20, 2003 at 04:53:46PM +0200, wrote:
>
> I'm trying to compile a c++ program with gcc, but
> everytime I'm using "new" to instantiate a new class
> (or "delete" to dispose it) I'm getting an error
> message, something like:
> undefined operator new()....
You forgot to include important information:
1) a short example program (if appropriate)
2) the command line used to compile the source
3) the exact error message the compiler provided
However, my *guess* is, that you're trying to compile (resp. compile-n-link)
C++ code using the 'gcc' command instead of the 'g++' command.
Try 'g++ -o program program.cc'.
--
Claudio Bley ASCII ribbon campaign (")
Debian GNU/Linux user - against HTML email X
http://www.cs.uni-magdeburg.de/~bley/ & vCards / \