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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Dynamic linking specializations


HAH!

3 days of hell for me coz i didnt know you were supposed to do that! mind you im no STL / c++ expert...
So to clear this up for future reference....would you need to instantiate the template once in every separate dynamic library?


jkp

On 25 Jan 2006, at 23:13, Jonathan Wakely wrote:

On Wed, Jan 25, 2006 at 01:28:07PM -0500, Howard Hinnant wrote:
Try putting this line:

template class std::basic_string<CharType>;

in TestClass.cpp at global scope.  That should instantiate a
UTFString and thus create the "empty rep" that this implementation
requires.

This should be added to "making strings of arbitrary types" in the chapter 21 docs.

jon



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