[mapguide-commits] r5861 - trunk/MgDev/Common/MdfModel

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Wed May 25 23:13:12 EDT 2011


Author: christinebao
Date: 2011-05-25 20:13:12 -0700 (Wed, 25 May 2011)
New Revision: 5861

Modified:
   trunk/MgDev/Common/MdfModel/UnicodeString.h
Log:
Remove export in UnicodeString.h. 
In VS2010 exporting STL causes link errors in the referencing project and forces the referencing project to add lib input of MdfModel.lib, and "/force multiple". 

Modified: trunk/MgDev/Common/MdfModel/UnicodeString.h
===================================================================
--- trunk/MgDev/Common/MdfModel/UnicodeString.h	2011-05-25 13:29:04 UTC (rev 5860)
+++ trunk/MgDev/Common/MdfModel/UnicodeString.h	2011-05-26 03:13:12 UTC (rev 5861)
@@ -157,14 +157,6 @@
 typedef basic_string<XMLCh, unicode_traits<XMLCh> > xstring;
 typedef basic_string<LCh, unicode_traits<LCh> > lstring;
 
-#ifdef _WIN32
-EXPIMP_TEMPLATE template class MDFMODEL_API basic_string<XMLCh, unicode_traits<XMLCh> >;
-EXPIMP_TEMPLATE template class MDFMODEL_API basic_string<LCh, unicode_traits<LCh> >;
-#else
-extern template class basic_string<XMLCh, unicode_traits<XMLCh> >;
-extern template class basic_string<LCh, unicode_traits<LCh> >;
-#endif
-
 // Unicode byte code conversion class.  This class contains static methods to convert
 // between UTF-8, UTF-16, and UTF-32.  It requires no additional libraries to function and
 // uses stl::basic_string functionality w/ help from the template defined above.



More information about the mapguide-commits mailing list