MySQL Forums
Forum List  »  Connector/C++

Compiling connector on OpenSuse 11.2
Posted by: Ruben Safir
Date: March 10, 2011 04:02PM

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

Options: ReplyQuote


Subject
Views
Written By
Posted
Compiling connector on OpenSuse 11.2
2674
March 10, 2011 04:02PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.