Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我遇到了 Xcode 的编译问题,它给出了以下错误:
链接器命令失败,退出代码为 1(使用 -v 查看调用)
请指教。我真的是在 Mac OSX 上运行代码的菜鸟,所以我会感谢我能得到的所有帮助。
谢谢,西 附图片
您在和中定义了两个main函数。从您的项目中删除该文件。main.cppprog1.cppmain.cpp
main
main.cpp
prog1.cpp