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

Unresolved Externals (1 reply)

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

Viewing all articles
Browse latest Browse all 527

Trending Articles



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