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: using templates in shared library



> If you want the linker to consider this instantiation intentional, and
> as a public interface of the library, you need to instantiate
> explicitely.

All symbols _are_ already instantiated in the library. The question is
how to get rid of them in the library or program linking to it. I
would maybe be happy with a method to tell the compiler by hand which
templates it should _not_ instantiate, but there's no such 1-x thing
it seems.

Instantiating manually is, for all practical purposes with loads of
STL in use, a nightmare. 

Ok, I'll redo the design, this is obviously not a feature that anyone
has thought of before ;-) I wonder how other compilers handle this though.

Kasper


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