Author: wyoung
Date: Fri Jan 12 13:52:25 2007
New Revision: 1390

URL: http://svn.gna.org/viewcvs/mysqlpp?rev=1390&view=rev
Log:
VC++ linkage fixes.

Modified:
    trunk/lib/common.h
    trunk/lib/mysql++.cpp
    trunk/lib/mysql++.h.in

Modified: trunk/lib/common.h
URL: 
http://svn.gna.org/viewcvs/mysqlpp/trunk/lib/common.h?rev=1390&r1=1389&r2=1390&view=diff
==============================================================================
--- trunk/lib/common.h (original)
+++ trunk/lib/common.h Fri Jan 12 13:52:25 2007
@@ -93,7 +93,7 @@
 
 /// \brief Alias for 'true', to make code requesting exceptions more
 /// readable.
-extern const bool use_exceptions;
+const bool use_exceptions = true;
 
 /// \brief Used to disambiguate overloads of equal_list() in SSQLSes.
 enum sql_cmp_type { sql_use_compare };

Modified: trunk/lib/mysql++.cpp
URL: 
http://svn.gna.org/viewcvs/mysqlpp/trunk/lib/mysql%2B%2B.cpp?rev=1390&r1=1389&r2=1390&view=diff
==============================================================================
--- trunk/lib/mysql++.cpp (original)
+++ trunk/lib/mysql++.cpp Fri Jan 12 13:52:25 2007
@@ -28,8 +28,6 @@
 
 namespace mysqlpp {
 
-const bool use_exceptions = true;
-
 unsigned int 
 get_library_version()
 {

Modified: trunk/lib/mysql++.h.in
URL: 
http://svn.gna.org/viewcvs/mysqlpp/trunk/lib/mysql%2B%2B.h.in?rev=1390&r1=1389&r2=1390&view=diff
==============================================================================
--- trunk/lib/mysql++.h.in (original)
+++ trunk/lib/mysql++.h.in Fri Jan 12 13:52:25 2007
@@ -51,6 +51,12 @@
 /// actual library you're linking to.
 #define MYSQLPP_HEADER_VERSION MYSQLPP_VERSION(@MYSQLPP_VERSION_MAJOR@, 
@MYSQLPP_VERSION_MINOR@, @MYSQLPP_VERSION_BUGFIX@)
 
+// This #include order gives the fewest redundancies in the #include
+// dependency chain.
+#include "connection.h"
+#include "query.h"
+#include "sql_types.h"
+
 namespace mysqlpp {
 
 /// \brief Get the current MySQL++ library version number
@@ -60,15 +66,9 @@
 /// MYSQLPP_HEADER_VERSION constant in order to ensure that your
 /// program is using header files from the same version of MySQL++ as
 /// the actual library you're linking to.
-unsigned int get_library_version();
+MYSQLPP_EXPORT unsigned int get_library_version();
 
 } // end namespace mysqlpp
-
-// This #include order gives the fewest redundancies in the #include
-// dependency chain.
-#include "connection.h"
-#include "query.h"
-#include "sql_types.h"
 
 #endif // !defined(MYSQLPP_MYSQLPP_H)
 


_______________________________________________
Mysqlpp-commits mailing list
[email protected]
https://mail.gna.org/listinfo/mysqlpp-commits

Reply via email to