Eclipse的黑莓preprocessor不工作? [英] Eclipse Blackberry Preprocessor Not Working?

查看:184
本文介绍了Eclipse的黑莓preprocessor不工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经遵循了方向@ <一个href=\"http://stackoverflow.com/questions/1383277/using-$p$pprocessor-directives-in-blackberry-jde-plugin-for-eclipse\">http://stackoverflow.com/questions/1383277/using-$p$pprocessor-directives-in-blackberry-jde-plugin-for-eclipse为确保黑莓插件preprocessing钩(理论上)运行。

I've already followed the directions @ http://stackoverflow.com/questions/1383277/using-preprocessor-directives-in-blackberry-jde-plugin-for-eclipse for making sure the blackberry plugin preprocessing hook is (theoretically) enabled.

我使用Eclipse 3.5.1与黑莓插件1.1的SDK BB 4.7.0和4.6.0。

I'm using Eclipse 3.5.1 with Blackberry Plugin 1.1 with BB SDKs 4.7.0 and 4.6.0.

我有我的preprocessor定义设置(我已经在这两个项目的黑莓属性以及工作区构建黑莓尝试设置),并检查他们的资本和拼写仔细了。

I have my preprocessor defines set (and I've tried in both the Project's Blackberry Properties as well as the Workspace Blackberry Build settings), and checked their capitalization and spelling carefully too.

我相当有信心,实际code说这东西应该是preprocessed是好的,因为包含/排除preprocessed code似乎很好地工作在命令行构建:

I'm fairly confident the actual code to say "this stuff should be preprocessed" is good, because including/excluding preprocessed code seems to work fine on command line builds:

//#preprocess ---在文件开头

然后code块这样整个

and then code blocks like this throughout:

//#ifndef jde_4_7
  /*
//#endif   
//#ifdef jde_4_7
import net.rim.device.api.ui.TouchEvent;
//#endif
//#ifndef jde_4_7
  */
//#endif   

所以,我想不出还有什么可能是错误的,会导致除非我删除,都应该prevent触摸$ C的评论Eclipse来不是我的$ P $编译pprocessed code $ C从建立到一个构建对于不支持触摸黑莓。

So what I can't figure out what else could be wrong that would cause Eclipse to not compile in my preprocessed code unless I remove the comments that are supposed to prevent the touch code from building into a build for blackberries that don't support touch.

在一个点上它曾经工作(没有我还没有更新的Eclipse),但有时在过去几周似乎只是停止工作。而且我越来越有点累寻找的ifdef并手动注释/取消注释触摸code和寻找更好的解决方案的易出错的过程,而我也测试和初步发展需要测试触摸和非触摸功能

At one point it used to work (and no I haven't updated Eclipse), but sometime in the last couple of weeks it seemed to just stop working. And I'm getting kind of tired of the error-prone process of searching for ifdefs and manually commenting/uncommenting touch code and looking for a better solution while I do testing and initial development requiring testing both touch and non-touch functionality.

这可能是错误或如何解决它的任何其他的想法?

Any other ideas on what could be wrong or how to fix it?

推荐答案

是的,我已经受够了这同样的经历。好像他们已经下降了对它的支持与他们的新插件。有时感觉就像那些家伙不能得到任何东西的权利。如果你想preprocessing恐怕你将不得不使用Eclipse 3.4和老插件(1.0.67)。你可以去这里并获取一个捆绑的Eclipse 3.4的插件说在与任何其他组件包中,你可能需要。

Yeah, I've had the same experience with this. Seems like they've dropped support for it with their new plug-in. Sometimes it feels like those guys can't get anything right. If you want preprocessing I'm afraid you'll have to use Eclipse 3.4 and the old plug-in (1.0.67). You can go here and fetch a bundled eclipse 3.4 with the said plug-in and any other component pack you may need.

这篇关于Eclipse的黑莓preprocessor不工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆