[I don't think it's off-topic at all] Linking speed for C++

Richard Henderson rth@redhat.com
Thu May 10 10:49:00 GMT 2001


On Thu, May 10, 2001 at 11:58:45AM -0600, Tom Tromey wrote:
> When would we not want to do this?

When bits wind up in header files, such that bits get compiled into
multiple object files in different dsos.  You may rely on one or the
other definition actually being used, but not both.  This is particularly
important for data members.

I don't know, but suspect, that it's easy to get in trouble here if
you aren't careful.  Particularly with templates.


r~



More information about the Gcc mailing list