剛剛升級到Lion和xcode 4.2。現在,當我重新編譯我的節目,我收到這些錯誤:XCode 4.2 clang seg fault
/Users/XXX/Code/iPhone/XXX/Code/Scenes/GameScene.mm:1806:35: current parser token ';'
/Users/XXX/Code/iPhone/XXX/Code/Scenes/GameScene.mm:1762:1: parsing Objective-C method 'updateWithTouchLocationMoved:withEvent:view:'
/Users/XXX/Code/iPhone/XXX/Code/Scenes/GameScene.mm:1762:1: in compound statement ('{}')
/Users/XXX/Code/iPhone/XXX/Code/Scenes/GameScene.mm:1771:2: in compound statement ('{}')
/Users/XXX/Code/iPhone/XXX/Code/Scenes/GameScene.mm:1789:3: in compound statement ('{}')
/Users/XXX/Code/iPhone/XXX/Code/Scenes/GameScene.mm:1796:4: in compound statement ('{}')
/Users/XXX/Code/iPhone/XXX/Code/Scenes/GameScene.mm:1799:5: in compound statement ('{}')
clang: error: unable to execute command: Segmentation fault: 11
clang: error: clang frontend command failed due to signal 2 (use -v to see invocation)
沒有什麼奇怪圍繞這些行號怎麼回事。沒有複合語句,如果(a == b)
類型的東西只是簡單的。某些錯誤行號甚至不在語句中,只是空行或{大括號。我懷疑行號不準確。我現在有點死在水裏。代碼在4.1下編譯好。
有什麼建議嗎?
可能屬於超級用戶 - 不是真正的編程問題,只是程序失敗恰好是一種編程工具。 – millimoose
@Inerdia,編程工具問題在這裏是主題:[...如果您的問題一般涵蓋...程序員常用的軟件工具](http://stackoverflow.com/faq#questions) – sarnold