I'm trying to install the C++ connector as outlined on this URL:
http://dev.mysql.com/tech-resources/articles/mysql-connector-cpp.html#install
and it fails misserably.
I have installed 5.5.0-m2 Source distribution
It fails right away on the make after doing the cmake
[ 1%] Building CXX object
driver/CMakeFiles/mysqlcppconn.dir/mysql_art_resultset.o
/home/ruben/src/mysql-connector-c++-1.0.5/driver/mysql_art_resultset.cpp:
In member function ‘std::string sql::mysql::MyVal::getString()’:
/home/ruben/src/mysql-connector-c++-1.0.5/driver/mysql_art_resultset.cpp:57:
error: ‘snprintf’ was not declared in this scope
/home/ruben/src/mysql-connector-c++-1.0.5/driver/mysql_art_resultset.cpp:63:
error: ‘snprintf’ was not declared in this scope
/home/ruben/src/mysql-connector-c++-1.0.5/driver/mysql_art_resultset.cpp:69:
error: ‘snprintf’ was not declared in this scope
/home/ruben/src/mysql-connector-c++-1.0.5/driver/mysql_art_resultset.cpp:75:
error: ‘snprintf’ was not declared in this scope
make[2]: *** [driver/CMakeFiles/mysqlcppconn.dir/mysql_art_resultset.o]
Error 1
make[1]: *** [driver/CMakeFiles/mysqlcppconn.dir/all] Error 2
I'm obviously clueless about what to do.
Ruben
http://dev.mysql.com/tech-resources/articles/mysql-connector-cpp.html#install
and it fails misserably.
I have installed 5.5.0-m2 Source distribution
It fails right away on the make after doing the cmake
[ 1%] Building CXX object
driver/CMakeFiles/mysqlcppconn.dir/mysql_art_resultset.o
/home/ruben/src/mysql-connector-c++-1.0.5/driver/mysql_art_resultset.cpp:
In member function ‘std::string sql::mysql::MyVal::getString()’:
/home/ruben/src/mysql-connector-c++-1.0.5/driver/mysql_art_resultset.cpp:57:
error: ‘snprintf’ was not declared in this scope
/home/ruben/src/mysql-connector-c++-1.0.5/driver/mysql_art_resultset.cpp:63:
error: ‘snprintf’ was not declared in this scope
/home/ruben/src/mysql-connector-c++-1.0.5/driver/mysql_art_resultset.cpp:69:
error: ‘snprintf’ was not declared in this scope
/home/ruben/src/mysql-connector-c++-1.0.5/driver/mysql_art_resultset.cpp:75:
error: ‘snprintf’ was not declared in this scope
make[2]: *** [driver/CMakeFiles/mysqlcppconn.dir/mysql_art_resultset.o]
Error 1
make[1]: *** [driver/CMakeFiles/mysqlcppconn.dir/all] Error 2
I'm obviously clueless about what to do.
Ruben