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")
or
#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.
Subject
Views
Written By
Posted
1004
January 31, 2020 09:29AM
629
January 31, 2020 11:14AM
755
January 31, 2020 12:57PM
1049
February 01, 2020 08:49AM
498
February 05, 2020 06:41AM
519
February 05, 2020 12:08PM
759
February 07, 2020 06:59AM
529
February 07, 2020 10:53AM
Re: Connecteur 8.0 cpp get_instance_driver() introuvable
582
February 10, 2020 03:30AM
579
February 10, 2020 06:04AM
504
February 11, 2020 04:26AM
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.