c++ ld:未找到-lcrypto的库

pwuypxnk  于 2023-05-24  发布在  其他
关注(0)|答案(1)|浏览(288)

我正在尝试运行http://iphonedevwiki.net/index.php/Theos/Setup教程,但在此步骤卡住了:

./make.sh 
+ xcrun -sdk macosx g++ -mmacosx-version-min=10.4 -arch i386 -arch x86_64 -I. -I/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/usr/include/libxml2 -Ilibplist/include -Ilibplist/libcnary/include -c -std=c++11 -o out/ldid.o ldid.cpp
+ xcrun -sdk macosx g++ -mmacosx-version-min=10.4 -arch i386 -arch x86_64 -I. -I/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/usr/include/libxml2 -Ilibplist/include -Ilibplist/libcnary/include -o out/ldid out/ldid.o out/iterator.o out/list.o out/node.o out/node_iterator.o out/node_list.o out/base64.o out/bplist.o out/bytearray.o out/hashtable.o out/plist.o out/ptrarray.o out/xplist.o -x c lookup2.c -lxml2 -framework Security -lcrypto
clang: warning: libstdc++ is deprecated; move to libc++ with a minimum deployment target of OS X 10.9 [-Wdeprecated]
clang: warning: libstdc++ is deprecated; move to libc++ with a minimum deployment target of OS X 10.9 [-Wdeprecated]
ld: library not found for -lcrypto
clang: error: linker command failed with exit code 1 (use -v to see invocation)

你能帮帮忙吗?

67up9zun

67up9zun1#

1.检查您的系统上是否安装了-lcrypto(在Linux系统上,您可以尝试调用ldconfig -p | grep libcrypto,但如果您使用的是macOS,请尝试找到一些等效的)
1.如果这个库位于某个特定的位置,并且默认情况下g不会搜索这个位置,请确保g调用包含正确的路径。
您可以在此堆栈溢出主题中阅读有关包含库和头文件的信息:https://stackoverflow.com/a/6141166/4802475

相关问题