问题描述
我有一个奇怪的编译问题与xcode和iphone。我的游戏几乎完成,但现在我很自然地这个编译错误:
i have a strange compiling problem with xcode and iphone. my game is almost finish but now i got suddently this compiling error:
{standard input}:6108:co-processor offset out of range
gcc-4.2 failed with exit code 1
如果我编译设备的发行版本。调试版本和两个版本的模拟器工作。干净的目标和重新编译不工作。
strangly足够的错误只有发生,如果我添加一行代码到一个特定的源文件,只有在这些行之间:
this only happens if i compile the release version for the device. the debug version and both versions for the simulator works. clean targets and recompile don't work.strangly enough that error only happens if i add a line of code to one specific source file and only between these lines:
[_sharedDirector checkAndPutScoreToHighscore:(int)[player score]];
gameOverScreen = YES;
gameOverScreenSlideY = 320.0f;
[buttonManager activateButtonWithID:replayButton];
[buttonManager activateButtonWithID:menuButton];
所以当我在这行代码之间有一个随机的行我得到那个错误。
我不知道是什么原因导致此错误。我已经打开源代码文件显示为装配文件只是为了好玩,但我不认为这造成的错误。
有任何暗示对我可能会发生什么?我正在搜索网络超过3小时,这很令人沮丧。
so when i put a random line between this lines of code i get that error.i do not know what causes this error. i had opened the sourcecode file to "show as assembly file" just for fun but i don't think this has caused the error.has anybode a hint for me what could be going on? i am searching the web for over 3 hours and thats very frustrating.
推荐答案
你很可能发现了一个编译器错误。你真的应该切换到LLVM编译器(clang)。
You most likely found a compiler bug. You really should switch to the LLVM compiler (clang).
这篇关于iphone:协处理器偏移超出范围的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!