delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/10/01/19:34:13.1

Sender: nate AT cartsys DOT com
Message-ID: <36140BD0.51CE0D20@cartsys.com>
Date: Thu, 01 Oct 1998 16:10:08 -0700
From: Nate Eldredge <nate AT cartsys DOT com>
X-Mailer: Mozilla 4.05 [en] (X11; I; Linux 2.0.35 i486)
MIME-Version: 1.0
To: "ªü­õ" <Philosopher DOT bbs AT titan DOT cc DOT ntu DOT edu DOT tw>
CC: djgpp AT delorie DOT com
Subject: Re: default functions in g++ ?
References: <3QhCAB$Par AT titan DOT cc DOT ntu DOT edu DOT tw>

ªü­õ wrote:
> 
>         I have a few c++ programs.
> 
>         I compile them without linking with libg++.
> 
>         At the linkage phase, the following errors were reported:
> 
>                 undefined reference to ___bultin_vec_new
>                 undefined reference to ___delete
>                 undefined reference to ___eh_pc
>                 undefined reference to ___throw
>                 undefined reference to _terminate
> 
>         Where can I find documents describing these functions?

You can't; they're internal to GCC and its libraries.  I assume you are
using GCC 2.8.1; you *have* to link with libstdcxx, because that's where
these are defined.  Use the `gxx' command to link, and all should work.

>         Is there any source code about these functions?

You can read the source code for libstdc++, but it probably won't be
enlightening.
-- 

Nate Eldredge
nate AT cartsys DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019