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