Undefined reference to "_imp_get_driver_instance" - MySQL
Hej.Jeg har brug for lidt hjælp her.. Jeg er igang med at sætte MySQL op i Codeblocks, men støder hele tiden på denne fejl. Har søgt mange steder, men har ikke fundet nogen løsning endnu.
#include <iostream>
#include <stdlib.h>
#include <windows.h>
#include <string.h>
#include "clients.h"
#include "Transfer.h"
#include "login.h"
#include "mysql_connection.h"
#include "mysql_driver.h"
#include "cppconn/driver.h"
#include "cppconn/statement.h"
#include "cppconn/driver.h"
#include "cppconn/resultset.h"
using namespace std;
using namespace sql;
int main() {
sql::Driver *driver;
sql::Connection *con;
driver = get_driver_instance();
con = driver->connect("127.0.0.1:3306", "root", " ");
//con->setSchema("billing");
Login log;
clients client;
Build log:
-------------- Build: Debug in Billing program (compiler: GNU GCC Compiler)---------------
mingw32-g++.exe -L"..\..\Program Files\MySQL\MySQL Connector C++ 1.1.5" -L..\..\mysql-connector-c++-noinstall-1.1.5-winx64\include -LC:\boost_1_57_0 -LC:\mysql-connector-c++-noinstall-1.1.5-winx64\include -o "bin\Debug\Billing program.exe" obj\Debug\main.o "..\..\Program Files\MySQL\MySQL Connector C++ 1.1.5\lib\opt\mysqlcppconn.lib" "..\..\Program Files\MySQL\MySQL Connector C++ 1.1.5\lib\opt\mysqlcppconn-static.lib" "..\..\Program Files\MySQL\MySQL Connector C++ 1.1.5\lib\debug\mysqlcppconn.lib" "..\..\Program Files\MySQL\MySQL Connector C++ 1.1.5\lib\debug\mysqlcppconn-static.lib" ..\..\mysql-connector-c++-noinstall-1.1.5-winx64\lib\mysqlcppconn.lib ..\..\mysql-connector-c++-noinstall-1.1.5-winx64\lib\mysqlcppconn-static.lib C:\mysql-connector-c++-noinstall-1.1.5-winx64\lib\mysqlcppconn.lib C:\mysql-connector-c++-noinstall-1.1.5-winx64\lib\mysqlcppconn-static.lib
obj\Debug\main.o: In function `main':
C:/C++/Billing program/main.cpp:22: undefined reference to `_imp__get_driver_instance'
collect2.exe: error: ld returned 1 exit status