Reputation: 3
ld: duplicate symbol _main in /Users/.../i386/main-7E8F26AC10F53546.o and /Users/.../i386/main-B9843B6026D6EFA4.o
collect2: ld returned 1 exit status
Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/g++-4.2 failed with exit code 1
Anyone help with this error?
Upvotes: 0
Views: 142
Reputation: 22873
ThiefMaster is right.. search for "main(" in your project and try to clean all targets and build again.
Upvotes: 0
Reputation: 318508
Sounds like you have more than one main()
function in your code.
Upvotes: 2