MySQL Forums
Forum List  »  Connector/C++

undefined reference to `get_driver_instance'
Posted by: Gabriel Luo
Date: September 02, 2009 12:15PM


I am trying to build a program that connects to MySQL in C++ with MySQL Connector/C++. For g++, I have specified where the static library is using -L, I have also specified the library with -lmysqlcppconn-static.

The following is the error message I got:

mysql_connector.cpp:(.text+0x290): undefined reference to `get_driver_instance'
collect2: ld returned 1 exit status
make: *** [mysql_connector] Error 1

Could anybody tell me what I did wrong.

Many thanks,


Options: ReplyQuote

Written By
undefined reference to `get_driver_instance'
September 02, 2009 12:15PM

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.