Can someone please explain difference between g++ linking and using ld?

Joe Buck jbuck@synopsys.com
Sat Oct 17 15:41:00 GMT 1998


> 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.



More information about the Gcc mailing list