开发者

Duplicate error on xcode

ld: duplicate symbol _main in /Users/.../i386/main-7E8F26AC10F53546.o and /Users/.../i386/main-B9843B6026D6EFA4.o
collect2: ld returned 1 e开发者_StackOverflow中文版xit status
Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/g++-4.2 failed with exit code 1

Anyone help with this error?


Sounds like you have more than one main() function in your code.


ThiefMaster is right.. search for "main(" in your project and try to clean all targets and build again.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜