升级ubuntu 18.04后,链接libssl收到未定义的参考错误

时间:2019-06-13 03:35:42

标签: c++ ubuntu libssl

我的构建之前可以正常工作,但是在升级ubuntu 18.04之后,现在是错误的。

c++  ... main.cc.o -o bin/bcDebug -rdynamic -pthread -lcppcms -lbooster -lboost_system -lmongocxx -lbsoncxx -lcryptopp -lta_lib
//usr/lib/x86_64-linux-gnu/libssl.so.1.1: undefined reference to `EVP_aria_256_gcm@OPENSSL_1_1_1'
//usr/lib/x86_64-linux-gnu/libssl.so.1.1: undefined reference to `EVP_DigestVerify@OPENSSL_1_1_1'
//usr/lib/x86_64-linux-gnu/libssl.so.1.1: undefined reference to `EVP_aria_128_gcm@OPENSSL_1_1_1'
//usr/lib/x86_64-linux-gnu/libssl.so.1.1: undefined reference to `ERR_load_strings_const@OPENSSL_1_1_1'
//usr/lib/x86_64-linux-gnu/libssl.so.1.1: undefined reference to `RAND_priv_bytes@OPENSSL_1_1_1'
//usr/lib/x86_64-linux-gnu/libssl.so.1.1: undefined reference to `conf_ssl_name_find@OPENSSL_1_1_0i'
//usr/lib/x86_64-linux-gnu/libssl.so.1.1: undefined reference to `X509_get_signature_info@OPENSSL_1_1_1'
//usr/lib/x86_64-linux-gnu/libssl.so.1.1: undefined reference to `EVP_PKEY_new_raw_private_key@OPENSSL_1_1_1'
//usr/lib/x86_64-linux-gnu/libssl.so.1.1: undefined reference to `OPENSSL_sk_new_reserve@OPENSSL_1_1_1'
//usr/lib/x86_64-linux-gnu/libssl.so.1.1: undefined reference to `RSA_pkey_ctx_ctrl@OPENSSL_1_1_1'
//usr/lib/x86_64-linux-gnu/libssl.so.1.1: undefined reference to `conf_ssl_get@OPENSSL_1_1_0i'
//usr/lib/x86_64-linux-gnu/libssl.so.1.1: undefined reference to `conf_ssl_get_cmd@OPENSSL_1_1_0i'
//usr/lib/x86_64-linux-gnu/libssl.so.1.1: undefined reference to `EVP_DigestSign@OPENSSL_1_1_1'
collect2: error: ld returned 1 exit status

我的c ++版本:

c ++ --version c ++(Ubuntu 7.4.0-1ubuntu1〜18.04)7.4.0 版权所有(C)2017自由软件基金会,Inc. 这是免费软件;请参阅复制条件的来源。没有 保证;甚至不是出于适销性或针对特定目的的适用性。

0 个答案:

没有答案