Mail Archives: djgpp/1998/10/01/19:34:13.1
ªüõ 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 -