MySQL Forums
Forum List  »  Connector/C++

Unresolved Externals
Posted by: Egidijus Molis
Date: November 19, 2016 04:31PM

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;

Options: ReplyQuote


Subject
Views
Written By
Posted
Unresolved Externals
498
November 19, 2016 04:31PM
228
November 21, 2016 04:46AM


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.