PDA

View Full Version : C++ Xcode error in build




BlackBlade
Jan 18, 2012, 07:30 PM
im not at all sure what this means, but all my builds fail b/c it can't get past this error


Ld /Users/Max/Library/Developer/Xcode/DerivedData/Legit-crfhlljgsvslgwgdwtwidvldyzhf/Build/Products/Debug/Legit normal x86_64
cd /Users/Max/Documents/Legit
setenv MACOSX_DEPLOYMENT_TARGET 10.7
/Developer/usr/bin/clang++ -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.7.sdk -L/Users/Max/Library/Developer/Xcode/DerivedData/Legit-crfhlljgsvslgwgdwtwidvldyzhf/Build/Products/Debug -F/Users/Max/Library/Developer/Xcode/DerivedData/Legit-crfhlljgsvslgwgdwtwidvldyzhf/Build/Products/Debug -filelist /Users/Max/Library/Developer/Xcode/DerivedData/Legit-crfhlljgsvslgwgdwtwidvldyzhf/Build/Intermediates/Legit.build/Debug/Legit.build/Objects-normal/x86_64/Legit.LinkFileList -mmacosx-version-min=10.7 -o /Users/Max/Library/Developer/Xcode/DerivedData/Legit-crfhlljgsvslgwgdwtwidvldyzhf/Build/Products/Debug/Legit

ld: duplicate symbol _main in /Users/Max/Library/Developer/Xcode/DerivedData/Legit-crfhlljgsvslgwgdwtwidvldyzhf/Build/Intermediates/Legit.build/Debug/Legit.build/Objects-normal/x86_64/converter.o and /Users/Max/Library/Developer/Xcode/DerivedData/Legit-crfhlljgsvslgwgdwtwidvldyzhf/Build/Intermediates/Legit.build/Debug/Legit.build/Objects-normal/x86_64/leggiitt.o for architecture x86_64
Command /Developer/usr/bin/clang++ failed with exit code 1



lloyddean
Jan 18, 2012, 07:41 PM
Your project contains several 'main' functions!