Author: wyoung
Date: Thu Aug 13 16:25:53 2009
New Revision: 2563
URL: http://svn.gna.org/viewcvs/mysqlpp?rev=2563&view=rev
Log:
Fixed several VC++ link errors, all to do with code added after 3.0.9
which hadn't yet had a Microsoftism pass.
Modified:
trunk/lib/cmdline.h
trunk/lib/query.cpp
trunk/lib/utility.h
Modified: trunk/lib/cmdline.h
URL:
http://svn.gna.org/viewcvs/mysqlpp/trunk/lib/cmdline.h?rev=2563&r1=2562&r2=2563&view=diff
==============================================================================
--- trunk/lib/cmdline.h (original)
+++ trunk/lib/cmdline.h Thu Aug 13 16:25:53 2009
@@ -120,7 +120,7 @@
/// \brief Stuff related to MySQL++ examples specifically
namespace examples {
/// \brief Name of examples' DB
- extern const char* db_name;
+ extern MYSQLPP_EXPORT const char* db_name;
/// \brief Command line parsing mechanism for ../examples/*.cpp
class MYSQLPP_EXPORT CommandLine : public CommandLineBase
Modified: trunk/lib/query.cpp
URL:
http://svn.gna.org/viewcvs/mysqlpp/trunk/lib/query.cpp?rev=2563&r1=2562&r2=2563&view=diff
==============================================================================
--- trunk/lib/query.cpp (original)
+++ trunk/lib/query.cpp Thu Aug 13 16:25:53 2009
@@ -31,6 +31,12 @@
#include "connection.h"
namespace mysqlpp {
+
+// Force insertfrom() policy template instantiation. Required to make
+// VC++ happy.
+Query::RowCountInsertPolicy<Transaction> RowCountInsertPolicyI(0);
+Query::SizeThresholdInsertPolicy<Transaction> SizeThresholdInsertPolicyI(0);
+Query::MaxPacketInsertPolicy<Transaction> MaxPacketInsertPolicyI(0);
Query::Query(Connection* c, bool te, const char* qstr) :
#if defined(MYSQLPP_HAVE_STD__NOINIT)
Modified: trunk/lib/utility.h
URL:
http://svn.gna.org/viewcvs/mysqlpp/trunk/lib/utility.h?rev=2563&r1=2562&r2=2563&view=diff
==============================================================================
--- trunk/lib/utility.h (original)
+++ trunk/lib/utility.h Thu Aug 13 16:25:53 2009
@@ -31,6 +31,8 @@
#if !defined(MYSQLPP_UTILITY_H)
#define MYSQLPP_UTILITY_H
+#include "common.h"
+
#include <cctype>
#include <cstring>
#include <string>
@@ -39,11 +41,11 @@
/// \brief Namespace for holding things used only within MySQL++
namespace internal {
/// \brief Lowercase a C++ string in place
- void str_to_lwr(std::string& s);
+ void MYSQLPP_EXPORT str_to_lwr(std::string& s);
/// \brief Copy a C string into a C++ string, lowercasing
/// it along the way
- void str_to_lwr(std::string& ls, const char* mcs);
+ void MYSQLPP_EXPORT str_to_lwr(std::string& ls, const char*
mcs);
} // end namespace mysqlpp::internal
} // end namespace mysqlpp
_______________________________________________
Mysqlpp-commits mailing list
[email protected]
https://mail.gna.org/listinfo/mysqlpp-commits