
This is a MSVC6 bug. When you export a class from a dll the linker try to find all class methods within the import library and of course fails for the template methods. Latest STLport library, the 5.0 beta you can get from CVS using STLPORT_5_0 branch, has a workaround for the std::locale and std::basic_string classes so your library should build fine with this version. Moreover it would be very usefull if boost was using the STLport 5.0 beta library for its unit tests with some platform/compilers. If you are interesting don't hesitate to contact me for information on STLport new features and modifications. Bests
Message: 10 Date: Sun, 13 Feb 2005 23:18:19 -0800 From: "Robert Ramey" <ramey@rrsd.com> Subject: [boost] Re: [iostreams] Link errors on msvc-stlport with dynamic runtime To: boost@lists.boost.org Message-ID: <cupj7f$j2b$1@sea.gmane.org>
I have had the exact same problem when building the serialization library and have found no way around it. I tried definine the template instantiation in a separate module but it collided with some msvc problem.
Robert Ramey
Jonathan Turkanis wrote:
1. __declspec(dllimport) public: __thiscall locale(locale const&, stateless_null_padded_codecvt*)