xcode: linker command failed with exit code 1 (use -v to see invocation)

来源:互联网 发布:warframe无法连接网络 编辑:程序博客网 时间:2024/06/05 18:05

xcode里,出现linker失败,duplicate symbol _main的原因,我遇到的是两种情况:


1.编译的文件里出现在了两个main()函数



2.同一个main.cpp,即同一个target被两个或两个以上membership选中

0 0
原创粉丝点击