openssl连接动态库的方法

错误:AES_set_decrypt_keylinux

一. 编译时:windows

1. 不要在windows与linux共享区编译
2. ./config no-asm -fPIC
3. makespa

 

二. cp: cannot create symbolic link `./openssl-OpenSSL_0_9_8k/include/openssl/rand.h': Operation not supportedssl

cp -r -L  ./openssl-OpenSSL_0_9_8k/ .openssl

 

三.  undefined symbol: AES_set_decrypt_keyio

连接程序中把 : ../lib/openssl-OpenSSL_0_9_8k/libcrypto.a 放在连接语句最后面asm

原理就是:连接顺序问题,基础库放在后面。编译

相关文章
相关标签/搜索