This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
g++ on Sun or HP-UX: linker errors
- To: help-gcc at gnu dot org
- Subject: g++ on Sun or HP-UX: linker errors
- From: Christoph Bauer <c_bauer at informatik dot uni-kl dot de>
- Date: 28 Nov 1999 19:02:48 +0100
- Newsgroups: gnu.gcc.help
- Organization: Universitaet Kaiserslautern
- Xref: wodc7nx0 gnu.gcc.help:1990
Hi,
I use gcc-95.2.
Here is a simple example for my problem:
test.cpp:
int *a;
main()
{
a=new int;
delete a;
}
c++ test.cpp -o t
-->
/var/tmp/cc41EVqc.o: In function `main':
/var/tmp/cc41EVqc.o(.text+0x10): undefined reference to `__builtin_new'
/var/tmp/cc41EVqc.o(.text+0x28): undefined reference to `__builtin_delete'
collect2: ld returned 1 exit status
On SGI works the compiler fine.
Thanks your help,
Christoph