MySQL Forums
Forum List  »  Connector/C++

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

Hi,

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,

Gab

Options: ReplyQuote


Subject
Views
Written By
Posted
undefined reference to `get_driver_instance'
6390
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.