MySQL Forums
Forum List  »  Connector/C++

Re: Static linking to Connector/C++ on linux giving errors
Posted by: Luis Silva
Date: April 13, 2020 03:47AM

Just tested using this compiler line:
g++ main.cc -o test -I /usr/include/mysql-cppconn-8/ /usr/lib/x86_64-linux-gnu/libmysqlcppconn8-static.a -lssl -lcrypto -lpthread -lresolv

Also worked using:
g++ main.cc -o test -I /usr/include/mysql-cppconn-8/ -lmysqlcppconn8 -lssl -lcrypto -lpthread -lresolv

And it build without issue... What distro and compiler are you using?

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Static linking to Connector/C++ on linux giving errors
687
April 13, 2020 03:47AM


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.