This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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


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~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]