MySQL Forums
Forum List  »  Connector/C++

Re: I need help with a build of mysql connector 8 test code which fails with symbols not found for architecture x86-64.
Posted by: Luis Silva
Date: January 05, 2020 01:51PM

For your case (passing full static library path), don't use the -l

This:
g++ -L/repository_source_code/mysql/connector/mysql-connector-cpp-8.0.18/mysql-connector-cpp-8.0.18 -o "SQL_Test_1" ./main.o -l/repository_source_code/mysql/connector/mysql-connector-cpp-8.0.18/mysql-connector-cpp-8.0.18/libmysqlcppconn8-static.a

should be:


g++ -o "SQL_Test_1" ./main.o /repository_source_code/mysql/connector/mysql-connector-cpp-8.0.18/mysql-connector-cpp-8.0.18/libmysqlcppconn8-static.a

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: I need help with a build of mysql connector 8 test code which fails with symbols not found for architecture x86-64.
301
January 05, 2020 01:51PM


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.