Skip to main content
added 48 characters in body
Source Link
Logan Murphy
  • 6.2k
  • 3
  • 28
  • 44

The actual error is a linker error. Undefined reference to get_driver_instance.

Any ideas what the problem is?

This is what I did to install.

The actual error is a linker error. Undefined reference to get_driver_instance.

Any ideas what the problem is?

This is what I did to install.

The actual error is a linker error. Undefined reference to get_driver_instance.

Any ideas what the problem is?

This is what I did to install.

added 65 characters in body
Source Link
Logan Murphy
  • 6.2k
  • 3
  • 28
  • 44

The actual error is a linker error. Undefined reference to get_driver_instance.

Any ideas what the problem is?

This is what I did to install.

The actual error is a linker error. Undefined reference to get_driver_instance.

Any ideas what the problem is?

This is what I did to install.

The actual error is a linker error. Undefined reference to get_driver_instance.

Any ideas what the problem is?

This is what I did to install.

added 83 characters in body
Source Link
Logan Murphy
  • 6.2k
  • 3
  • 28
  • 44

I am having trouble linking my program to C++ MySQL Driver.

I am trying to compile the following program :

http://dev.mysql.com/doc/refman/5.1/en/connector-cpp-examples-complete-example-1.html

I am using MinGW to compile my program.

C:\MinGW32\lib contains the following files :

libmysqlcppconn-static.a mysqlcppconn.dll

I am using the following command to compile.

g++ example.cpp -lmysqlcppconn-static -LC:\MinGW32\lib

All header files are properly placed as there are no file not found errors.

The actual error is a linker error. Undefined reference to get_driver_instance.

Any ideas what the problem is?

This is what I did to install.

I am having trouble linking my program to C++ MySQL Driver.

I am trying to compile the following program :

http://dev.mysql.com/doc/refman/5.1/en/connector-cpp-examples-complete-example-1.html

I am using MinGW to compile my program.

C:\MinGW32\lib contains the following files :

libmysqlcppconn-static.a mysqlcppconn.dll

I am using the following command to compile.

g++ example.cpp -lmysqlcppconn-static -LC:\MinGW32\lib

All header files are properly placed as there are no file not found errors.

The actual error is a linker error. Undefined reference to get_driver_instance.

Any ideas what the problem is?

This is what I did to install.

The actual error is a linker error. Undefined reference to get_driver_instance.

Any ideas what the problem is?

This is what I did to install.

added 615 characters in body
Source Link
Logan Murphy
  • 6.2k
  • 3
  • 28
  • 44
Loading
edited tags
Link
xaxxon
  • 19.8k
  • 6
  • 55
  • 86
Loading
Source Link
Logan Murphy
  • 6.2k
  • 3
  • 28
  • 44
Loading