【发布时间】:2015-12-15 06:15:13
【问题描述】:
这是我的编译命令
gcc msg_utils.o -o mtm -lm -L/openssl-1.0.0a -lssl -lcrypto
我得到错误:
/usr/bin/ld: cannot find -lssl
请告诉我我的命令有什么问题,openssl 的路径是正确的,我从以下位置获取 openssl 源代码:
【问题讨论】:
-
哪个操作系统?
-
Linking OpenSSL libraries to a program 的可能重复项。还要确保您配置了
shared选项;请参阅 OpenSSL wiki 上的 Compilation and Installation | Configure Options。