Wangle项目中对SSL_CTX_sess_set_remove_cb @@ OPENSSL_1.0.0的未定义引用

时间:2016-02-26 21:28:22

标签: c++ linux openssl

我正在与Wangle合作。在编译简单的echo示例时,链接到OpenSSL时会发生错误:

using (SQLiteConnection con = new SQLiteConnection("Data Source=" + dat + ";Version=3;"))
{
    con.Open();
}

我在我的Cmake中使用/usr/bin/ld: /usr/local/lib/libwangle.a(SSLSessionCacheManager.cpp.o): undefined reference to symbol 'SSL_CTX_sess_set_remove_cb@@OPENSSL_1.0.0' /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libssl.so: error adding symbols: DSO missing from command line 来查找OpenSSL和Wangle库。 find_library很好,但cmake .会产生此消息。

有没有办法在wangle中禁用SSL或获取正确的openssl lib? make位于错误中提供的路径上。

0 个答案:

没有答案