MySQL Forums
Forum List  »  Connector/C++

Error in compling the examples
Posted by: Why ellow
Date: December 03, 2015 05:40AM

I downloaded the connector for c++ and installed it following the steps provided on the website. Every step was succeed. But when I changed to path of example and compiled a program, none could compile successfully. The error was mainly about "undefined reference to `sql::mysql::get_driver_instance()'" and "fatal error: driver/mysql_public_iface.h: No such file or directory". Of course, I had used the command "export ..." . My compile-command was"g++ -o connect -I/usr/local/include -I/usr/local/include/cppconn -Wl, -Bdynamic -lmysqlcppconn connect.cpp". Why there were errors. Anyone can help me. Thank you.

Options: ReplyQuote


Subject
Views
Written By
Posted
Error in compling the examples
1838
December 03, 2015 05:40AM


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.