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]

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


In article <m3iu2mze7r.fsf@forelle18.wohnheim.uni-kl.de>, Christoph Bauer wrote:
[...]
>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

I installed gcc-2.95.2 on HP - sounds like a just that, an installation
problem like as the compiler would use the wrong libgcc.a.

Ta',
Juergen

-- 
\ Real name     : Jürgen Heinzl                 \       no flames      /
 \ EMail Private : juergen@monocerus.demon.co.uk \ send money instead /


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