2017-02-20 73 views
0

我想在Xcode上使用C++ SNAP。我安裝了SNAP,並向Xcode提供了這兩個標題搜索路徑:/usr/local/Cellar/Snap-3.0/snap-core/和/usr/local/Cellar/Snap-3.0/glib-core/。Xcode鏈接器標誌斯坦福網絡分析項目(SNAP)

但它仍然產生下面的錯誤。我相信我需要在Xcode中填寫「其他鏈接器標誌」,但我似乎無法做到。感謝幫助。

的C++代碼如下:

#include "Snap.h" 
int main() { 
return 0; 
} 

錯誤消息下面

Undefined symbols for architecture x86_64: 
    "ExeStop(char const*, char const*, char const*, char const*, int const&)", referenced from: 
     TRStr::UnRef() in main.o 
     TRStr::~TRStr() in main.o 
     TRStr::GetNullRStr() in main.o 
    "TStr::GetRStr(char const*)", referenced from: 
     TStr::TStr(char const*) in main.o 
ld: symbol(s) not found for architecture x86_64 
**clang: error: linker command failed with exit code 1 (use -v to see invocation)** 

回答

1

它的工作原理有一次我在Xcode

添加-lSnap.o在 「其他連接標誌」