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:48PM

Using 18.04

root@1a1ec5e05ed6:~# g++ main.cc -o test -I /usr/include/mysql-cppconn-8/ /usr/lib/x86_64-linux-gnu/libmysqlcppconn8-static.a -lssl -lcrypto -lpthread -lresolv
root@1a1ec5e05ed6:~# g++ main.cc -o test -I /usr/include/mysql-cppconn-8/ -lmysqlcppconn8 -lssl -lcrypto -lpthread -lresolv
root@1a1ec5e05ed6:~# dpkg -l | grep mysql
ii libmysqlcppconn-dev:amd64 8.0.19-1ubuntu18.04 amd64 Development header files and libraries for MySQL C++ client applications
ii libmysqlcppconn7:amd64 8.0.19-1ubuntu18.04 amd64 MySQL Driver for C++ which mimics the JDBC 4.0 API
ii libmysqlcppconn8-2:amd64 8.0.19-1ubuntu18.04 amd64 MySQL database connector for C++


So something is fishy there.. can you please check if you have the same mysql packages?

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Static linking to Connector/C++ on linux giving errors
220
April 13, 2020 03:48PM


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.