C++ Xcode error in build

Discussion in 'Mac Programming' started by BlackBlade, Jan 18, 2012.

  1. macrumors member

    Joined:
    Jan 4, 2010
    #1
    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
     
  2. macrumors 6502a

    Joined:
    May 10, 2009
    Location:
    Des Moines, WA
    #2
    Your project contains several 'main' functions!
     

Share This Page