MySQL Forums
Forum List  »  Connector/C++

MySQL C++ Connector doesn't compile
Posted by: Enrique Ismael Mendoza Robaina
Date: June 17, 2010 02:53PM

Hi! I'm trying to install mysql c++ connector but I can't. I'm working with cmake project in Code::Blocks.

cmake . and ccmake . run well, but when I'm going to make "make" that happends:

enri@enri-laptop:~/Descargas/mysql-connector-c++-1.0.5$ sudo make
Scanning dependencies of target mysqlcppconn
[ 0%] Building CXX object driver/CMakeFiles/mysqlcppconn.dir/mysql_art_resultset.o
/home/enri/Descargas/mysql-connector-c++-1.0.5/driver/mysql_art_resultset.cpp: In member function ‘std::string sql::mysql::MyVal::getString()’:
/home/enri/Descargas/mysql-connector-c++-1.0.5/driver/mysql_art_resultset.cpp:57: error: ‘snprintf’ was not declared in this scope
/home/enri/Descargas/mysql-connector-c++-1.0.5/driver/mysql_art_resultset.cpp:63: error: ‘snprintf’ was not declared in this scope
/home/enri/Descargas/mysql-connector-c++-1.0.5/driver/mysql_art_resultset.cpp:69: error: ‘snprintf’ was not declared in this scope
/home/enri/Descargas/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
make: *** [all] Error 2


Any idea?

Do you know how to use the compile library in my Code::Blocks project?

Thank you!

Options: ReplyQuote


Subject
Views
Written By
Posted
MySQL C++ Connector doesn't compile
5242
June 17, 2010 02:53PM


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.