MySQL Forums
Forum List  »  Connector/C++

Connector 8.0 cpp get_instance_driver() not found
Posted by: Jean BEZET
Date: February 07, 2020 06:59AM

Hy
Ok i change the distribution i try to use connector 8.0
I got on your's site web
and example to :
https://dev.mysql.com/doc/connector-cpp/1.1/en/connector-cpp-examples-complete-example-1.html

I have the same code
i use mysqlcppconn8-static.lib
sql::Driver* driver = nullptr;
driver = get_driver_instance();

file included :

/*
Include directly the different
headers from cppconn/ and mysql_driver.h + mysql_util.h
(and mysql_connection.h). This will reduce your build time!
*/
#include "mysql_connection.h"

#include <cppconn/driver.h>
#include <cppconn/exception.h>
#include <cppconn/resultset.h>
#include <cppconn/statement.h>
Compilation option /MD and VS2019

Error link __imp__get_driver_instance

Xhere is get_driver_instance ?

I'm doing something wrong ?

Thanks

Options: ReplyQuote


Subject
Views
Written By
Posted
927
January 31, 2020 09:29AM
Connector 8.0 cpp get_instance_driver() not found
694
February 07, 2020 06:59AM


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.