编译 C++ 应用程序时出现链接器错误

Linker errors when compiling C++ application

我正在尝试编译名为“Nirai" on Mac OS X 10.11. This code will compile on Windows, and a few Hackintosh's. I have tried to compile this on 4 other Macs and have received the same error. Here's the full output of the compiler: http://www.pastebin.com/qEEBZ614

的 C++ 应用程序

我正在使用 OpenSSL 1.0.2e 3 Dec 2015 darwin64-x86_64-cc,我通过自制软件安装了 OpenSSL。我使用的 pycrypto 版本是 2.6.1

这是完整的 link 命令:http://www.pastebin.com/g19UDmjM

我使用的 clang 版本(g++ 调用 clang)是 Apple LLVM version 7.0.0 (clang-700.0.72) x86_64-apple-darwin15.0.0

任何帮助将不胜感激。

如果需要任何其他信息,我会尽可能提供。

好的!我设法解决了这个问题。原来我的编译器正在选择其他一些不兼容的 OpenSSL 库。

在确保新 OpenSSL 二进制文件的正确路径后,它起作用了。