public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* g++ on Sun or HP-UX: linker errors
@ 1999-11-28 10:11 Christoph Bauer
  1999-11-28 13:03 ` Juergen Heinzl
  1999-11-30 23:28 ` Christoph Bauer
  0 siblings, 2 replies; 4+ messages in thread
From: Christoph Bauer @ 1999-11-28 10:11 UTC (permalink / raw)
  To: help-gcc

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: g++ on Sun or HP-UX: linker errors
  1999-11-28 10:11 g++ on Sun or HP-UX: linker errors Christoph Bauer
@ 1999-11-28 13:03 ` Juergen Heinzl
  1999-11-30 23:28   ` Juergen Heinzl
  1999-11-30 23:28 ` Christoph Bauer
  1 sibling, 1 reply; 4+ messages in thread
From: Juergen Heinzl @ 1999-11-28 13:03 UTC (permalink / raw)
  To: help-gcc

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 690 bytes --]

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 /

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: g++ on Sun or HP-UX: linker errors
  1999-11-28 13:03 ` Juergen Heinzl
@ 1999-11-30 23:28   ` Juergen Heinzl
  0 siblings, 0 replies; 4+ messages in thread
From: Juergen Heinzl @ 1999-11-30 23:28 UTC (permalink / raw)
  To: help-gcc

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 690 bytes --]

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 /

^ permalink raw reply	[flat|nested] 4+ messages in thread

* g++ on Sun or HP-UX: linker errors
  1999-11-28 10:11 g++ on Sun or HP-UX: linker errors Christoph Bauer
  1999-11-28 13:03 ` Juergen Heinzl
@ 1999-11-30 23:28 ` Christoph Bauer
  1 sibling, 0 replies; 4+ messages in thread
From: Christoph Bauer @ 1999-11-30 23:28 UTC (permalink / raw)
  To: help-gcc

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1999-11-30 23:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-11-28 10:11 g++ on Sun or HP-UX: linker errors Christoph Bauer
1999-11-28 13:03 ` Juergen Heinzl
1999-11-30 23:28   ` Juergen Heinzl
1999-11-30 23:28 ` Christoph Bauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).