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

Undefined symbols (no replies)

$
0
0
I'm working on a program that uses Connector/C++ and I can't figure out what is causing this issue. When I attempt to get the driver and compile I get this error:

Undefined symbols for architecture x86_64:
"_get_driver_instance", referenced from:
_main in cc6UHEQ6.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status

Everything seems to be included correctly. The code I'm using to connect is:

Driver *driver;
Connection *connect;
driver= get_driver_instance();
connect = driver->connect(url, userName, password);

url, username, and password are strings.
Anyone have a solution?

Viewing all articles
Browse latest Browse all 527

Trending Articles



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