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.
精彩评论