关于openssl库的链接问题

../../../lib/libIceSSL.so: undefined reference to `RAND_load_file'
../../../lib/libIceSSL.so: undefined reference to `BIO_find_type'
../../../lib/libIceSSL.so: undefined reference to `CRYPTO_num_locks'
../../../lib/libIceSSL.so: undefined reference to `EVP_enc_null'
../../../lib/libIceSSL.so: undefined reference to `EVP_CIPHER_CTX_init'
../../../lib/libIceSSL.so: undefined reference to `BIO_new_mem_buf'
../../../lib/libIceSSL.so: undefined reference to `BUF_strndup'
../../../lib/libIceSSL.so: undefined reference to `X509_NAME_dup'
../../../lib/libIceSSL.so: undefined reference to `COMP_compress_block'
../../../lib/libIceSSL.so: undefined reference to `EVP_rc2_cbc'
../../../lib/libIceSSL.so: undefined reference to `sk_new_null'


Try: -lssl -lcrypto

以前编译手机浏览器的过程中似乎也遇到过,竟然忘记了,特记录下,这两个库的链接顺序也是不能变的
http://blog.sina.com.cn/s/blog_45497dfa0100nxi3.html

你可能感兴趣的:(linux相关服务)