List:Connector/C++« Previous MessageNext Message »
From:Bill Lear Date:December 14 2009 3:51pm
Subject:building mysql-connector 1.0.5 on Ubuntu 9.10
View as plain text  
I tried to build the 1.0.5 release of mysql-connector on Ubuntu 9.10.
It failed, but I was able to get it to compile by adding some #includes
of stdio.h.

Below is the diff set.


Bill

diff --git a/driver/mysql_art_resultset.cpp b/driver/mysql_art_resultset.cpp
index c5b67c9..9d41de3 100644
--- a/driver/mysql_art_resultset.cpp
+++ b/driver/mysql_art_resultset.cpp
@@ -8,6 +8,7 @@
    FLOSS License Exception
    <http://www.mysql.com/about/legal/licensing/foss-exception.html>.
 */
+#include <stdio.h>

 #include "mysql_util.h"
 #include "mysql_art_resultset.h"
diff --git a/driver/mysql_resultbind.cpp b/driver/mysql_resultbind.cpp
index 49068e0..1d0e8d5 100644
--- a/driver/mysql_resultbind.cpp
+++ b/driver/mysql_resultbind.cpp
@@ -8,6 +8,8 @@
    FLOSS License Exception
    <http://www.mysql.com/about/legal/licensing/foss-exception.html>.
 */
+#include <stdio.h>
+
 #include <cppconn/exception.h>
 #include "mysql_util.h"
 #include "mysql_debug.h"
diff --git a/test/unit/classes/resultsetmetadata.cpp
b/test/unit/classes/resultsetmetadata.cpp
index 570fd8a..ae755bd 100644
--- a/test/unit/classes/resultsetmetadata.cpp
+++ b/test/unit/classes/resultsetmetadata.cpp
@@ -9,7 +9,7 @@
    <http://www.mysql.com/about/legal/licensing/foss-exception.html>.

  */
-
+#include <stdio.h>
 #include <cppconn/warning.h>

 #include "resultsetmetadata.h"

Thread
building mysql-connector 1.0.5 on Ubuntu 9.10Bill Lear14 Dec