Eclipse CDT的和未知的标签 [英] Eclipse CDT and unknown tags

查看:253
本文介绍了Eclipse CDT的和未知的标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目前,我们正在寻找从$移动我们的开发环境C $ cWright(这早已被抛弃了由Borland),并迁移到Eclipse。我们正在使用Eclipse为Perl,PHP和某些Windows C ++有很大的成功发展。

Currently we are looking at moving our development environment from CodeWright (which has long since been abandonned by Borland) and moving to Eclipse. We are using Eclipse for Perl, PHP and some Windows C++ development with much success.

这个问题出现与使用我们的嵌入式环境 - 在makefile - 一些定义的Excel似乎并不明白。下面是一个例子(蒙山值更改为保护有罪):

The issue comes up however with our embedded environment which uses - in the makefile - some defines that Excel does not seem to understand. Here's an example (whith values changed to protect the guilty):

F_FOO unsigned char foo(ptr *this)
{
}

在这里F_FOO在Makefile中定义为

where F_FOO is defined in the makefile as

F_FOO=@foobar

Eclipse将突出F_FOO和其标记为语法错误。这会导致各种悲伤的具有可追溯性。

Eclipse will highlight the F_FOO and flag it as a syntax error. That causes all kinds of grief with traceability.

要一些exctent这也与构建C ++的一些code发生在那里Eclipse不知道如何处理关键字 __快速调用。

To some exctent this also happens with some code in Builder C++ where Eclipse does not know how to handle the keyword __fastcall.

任何帮助(我知道我们不能运行到这个问题的唯一的)将是非常美联社preciated。

Any help on this (I know we can't be the only ones running into this issue) would be highly appreciated.

推荐答案

我们试图在头指令,但因为项目的大小#定义以及数量众多的文件,这竟然是一个不太实用的方法。

We tried the #defines in the header directive but because of the size of the project as well as the sheer number of files, that turned out to be a not too practical approach.

围绕Eclipse工具,我们发现,为我们有效的解决方案,它是详述如下:

Tooling around Eclipse we found a solution that works for us and it is detailed below:


  1. 右键单击有问题的项目。

  2. 在出现的菜单底部选择属性。

  3. 展开C / C ++ Geneeral

  4. 选择路径和符号

  5. 在符号添加违规的符号(留为空白)

这奏效了我们。现在,我们已经恢复了全程追溯我们的软件。

That did the trick for us. We have now restored full traceability for our software.

这篇关于Eclipse CDT的和未知的标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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