ld: duplicate symbol _velocityX in \
/Users/Student/Library/Developer/Xcode/DerivedData/finalproject-ffzevekmatxvhrgisgeleoijyllr/Build/Intermediates/finalproject.build/Debug-iphonesimulator/finalproject.build/Objects-normal/i386/Level2ViewController.o \
and \
/Users/Student/Library/Developer/Xcode/DerivedData/finalproject-ffzevekmatxvhrgisgeleoijyllr/Build/Intermediates/finalproject.build/Debug-iphonesimulator/finalproject.build/Objects-normal/i386/Level1ViewController.o \
for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
UPDATE:爲便於閱讀,鏈接器命令失敗,退出代碼1:重複的符號
添加\ +換行我不知道什麼是錯的我的項目,任何人都可以幫忙嗎?
好:鏈接器抱怨符號「_velocityX」在兩個對象中定義:「.../Objects-normal/i386/Level2ViewController.o」和「.../Objects-normal/i386/Level1ViewController。 o「也許你在鏈接器調用中指定了兩次對象?或者你包含一個.C文件?或者你有陳舊的物體漂浮在附近? – wildplasser 2012-07-30 18:41:38