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

MySql 8.0 + Connector C++ 8.0.11 compiler error (no replies)

$
0
0
I have to write small program in C++ which connects with data in MySql.
My environment:
Windows 10
MySql 8.0
Connector C++ 8.0.11 (32 bit)
Code::Blocks 17.12 (32 bit) (for C++)

Program:

#include <cppconn/driver.h>
#include <cppconn/exception.h>
#include <cppconn/resultset.h>
#include <cppconn/statement.h>

main()
{
sql::Driver *driver;

driver = get_driver_instance();
}

Compiler returns error:
“undefined reference to `_imp__get_driver_instance'|”

Please help.

Viewing all articles
Browse latest Browse all 527

Trending Articles



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