This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

g++ on Sun or HP-UX: linker errors


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]