Dynamic linking specializations
Jamie Kirkpatrick
jkp@kirkconsulting.co.uk
Tue Jan 31 18:15:00 GMT 2006
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
>
More information about the Libstdc++
mailing list