我试图跟随斯坦福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