0
我想在MacOS Sierra上安裝一個開源軟件(AB3P)。當我發出命令make
時,出現此錯誤:ld: library not found for -lops
。發出錯誤之前發出的make命令是:g++ -g -o make_wordSet make_wordSet.o -L./Library -lops -D_POSIX_C_SOURCE=199506L -lpthread
在MacOS Sierra上編譯一個用C++編寫的開源軟件的問題Sierra
我擁有最新版本的MacOS Sierra和Xcode + Xcode命令行開發人員工具(撰寫本文時)。此外gcc
安裝,命令gcc --version
回報:
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 8.1.0 (clang-802.0.42)
Target: x86_64-apple-darwin16.5.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
我不知道如何來解決這個問題,有什麼建議?
您發佈的行與該項目的makefile中的任何內容都不相似。 – molbdnilo