我試圖跟隨斯坦福CS106B課程。他們提供了一些在課程中使用的庫,但我不能爲我的生活開始和新的項目,導入庫並讓它編譯。在XCode中使用斯坦福C++庫開始一個項目
這些是我得到的錯誤。不知道他們是多麼有用......
LD:重複的符號 /用戶/亞當/庫/開發商/ Xcode中/ DerivedData/Chapter_2-d
hgxptnyygirinbntlelnegvower _main /建設/中間體/章 2。 build/Debug/Chapter 2.build /Objects-normal/i386/task11.o和/ Users/adam/Library/Developer/Xcode/DerivedData/Chapter_2-dhgxptnyygirinbntlelnegvower/Build/Intermediates/Chapter 2.build/Debug /第2章.build/Objects-normal/i386/main.o for architecture i386Command /Developer/usr/bin/llvm-g++-4.2失敗,退出代碼爲1
'task11.cpp'(或者任何編譯到'task11.o')有'main'函數嗎?我假設'main.o'中也有一個。你確定他們應該聯繫在一起,而且他們不是獨立的項目嗎? – Useless