I'm trying to copy a program that needs some libraries
LIBS = -g -lmysqlcppconn -lpthread -lcurl -lboost_serialization -lreadline -lz -luWS -lssl
The problem is that -lcurl
and some programs need libssl.so.1.0.2
and -lssl
needs libssl.so.1.1
.
And when I try to copy:
$make
g++ main.cpp sha1_sha1.o tools.o web.o api.o api-server.o paypal.o paypal_web_hook.o -o api.run -g -lmysqlcppconn -lpthread -lssl -lcurl -lboost_serialization -lreadline -lz -luWS -I /usr/include/ -g
/usr/bin/ld: warning: libssl.so.1.0.2, needed by /usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/libcurl.so, may conflict with libssl.so.1.1
I have to leave both libraries installed, what I'm looking for is a way to use only the latest one to copy the code.