MySQL Forums
Forum List  »  Connector/C++

Re: Connecteur 8.0 cpp get_instance_driver() introuvable
Posted by: Jean BEZET
Date: February 10, 2020 03:30AM

hy If use under VS 2019 C++ /MD
#pragma comment (lib,"mysqlcppconn-static.lib")
#pragma comment (lib,"mysqlcppconn8.lib")

2 function(s) will be unresolved during link phase:

the fisrt: symbol extern unresolved "__declspec(dllimport) public: virtual __thiscall sql::SQLException::~SQLException(void)
the second : symbol extern unresolved imp__get_driver_instance

note : imp__get_driver_instance is define in file driver.h link this
extern "C"
CPPCONN_PUBLIC_FUNC sql::Driver *get_driver_instance();

with the old version (connector 1.1.9) this function was defined in Driver Class (driver.h).
I use the code from your's site webb with out modification
If y use #pragma comment (lib,"mysqlcppconn.lib") no problen during linking pahse but at the run time
while ( result->next())
string Result_BD_QUERY = result->getString(1);
} // crash when the programm want to destroy the object Result_BD_QUERY

It's for that i want to change the library from connector 1.1.9 to Connector C++ 8.0
More information when i trace with (mysqlcppconn.lib) and i get getName(), i found that this library call libmysql.dll
and in the new sersion i don't found it?

Thanks for your's answer.

Options: ReplyQuote

Written By
January 31, 2020 09:29AM
Re: Connecteur 8.0 cpp get_instance_driver() introuvable
February 10, 2020 03:30AM

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.