Quantcast
Channel: MySQL Forums - Connector/C++
Viewing all articles
Browse latest Browse all 527

MySQL C++ Connector doesn't compile (1 reply)

$
0
0
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!

Viewing all articles
Browse latest Browse all 527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>