开发者

Duplicate error on xcode

开发者 https://www.devze.com 2023-02-28 14:40 出处:网络
ld: duplicate symbol _main in /Users/.../i386/main-7E8F26AC10F53546.o and /Users/.../i386/main-B9843B6026D6EFA4.o
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

精彩评论

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