This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Can someone please explain difference between g++ linking and using ld?
- To: gerald dot gryschuk at home dot com (Gerald Gryschuk)
- Subject: Re: Can someone please explain difference between g++ linking and using ld?
- From: Joe Buck <jbuck at synopsys dot com>
- Date: Sat, 17 Oct 98 15:41:31 PDT
- Cc: egcs at cygnus dot com
> Amazingly or
> not to those who might know why, exceptions work from the shared library
> thus produced. So now my question isn't about whether shared libraries
> and exceptions are compatible. Instead I was wondering if someone could
> please take the time to explain how invoking the linker through g++
> is different than invoking the linker directly.
Invoking the linker through g++ passes a number of flags to the linker;
these flags are platform-dependent. So yes, you could call the linker
directly, but the command you would need to use would be different on
each OS.