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

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


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



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

发布了70 篇原创文章 · 获赞 48 · 访问量 19万+

猜你喜欢

转载自blog.csdn.net/fwb330198372/article/details/53160683