Hello i have a problem with this mysql c++ connector i setup everything all includes and libraries and is still gives me an errors :
What have i done so far :
Additional Include Directories : ...MySQL\MySQL Connector C++ 1.1.7\include
Also have boost installed because it was missing :MySQL\MySQL Connector C++ 1.1.7\include\boost
Additional Library Directories :MySQL\MySQL Connector C++ 1.1.7\lib\opt
There was missing some libraries but i got them from Mysql server that i download from mysql.com
Additional Dependencies: mysqlcppconn-static.lib and libmysql.lib
i havent done last step width CPPCONN_PUBLIC_FUNC= because once i do that i got like 300 errors
my code looks like this :
sql::mysql::MySQL_Driver* driver;
sql::Connection* con;
driver = sql::mysql::get_mysql_driver_instance();
con = driver->connect(cfg->GetDatabase()->host, cfg->GetDatabase()->username, cfg->GetDatabase()->password);
delete con;
What have i done so far :
Additional Include Directories : ...MySQL\MySQL Connector C++ 1.1.7\include
Also have boost installed because it was missing :MySQL\MySQL Connector C++ 1.1.7\include\boost
Additional Library Directories :MySQL\MySQL Connector C++ 1.1.7\lib\opt
There was missing some libraries but i got them from Mysql server that i download from mysql.com
Additional Dependencies: mysqlcppconn-static.lib and libmysql.lib
i havent done last step width CPPCONN_PUBLIC_FUNC= because once i do that i got like 300 errors
my code looks like this :
sql::mysql::MySQL_Driver* driver;
sql::Connection* con;
driver = sql::mysql::get_mysql_driver_instance();
con = driver->connect(cfg->GetDatabase()->host, cfg->GetDatabase()->username, cfg->GetDatabase()->password);
delete con;