Easy error compiling with gcc

Robe robe@prodal.telemar.cu
Wed Aug 31 14:44:00 GMT 2005


Hi,

I'm making a program and of course I'm using the new and delete operator.
When I compile the program I receive the following error "undefined
reference to 'operator delete(void *)' "

I think that this error could be because I'm not using some library.

Because when I compiling the same program with "g++" it's ok.

But I need to compile it with "gcc".

Please if possible send me the full command line to compile a C++ program
with "gcc" instead "g++"
 

Thanks, Robe.




More information about the Gcc-help mailing list