日食C ++项目显示错误(符号无法解析),但它编译 [英] eclipse C project shows errors (Symbol could not be resolved) but it compiles

查看:166
本文介绍了日食C ++项目显示错误(符号无法解析),但它编译的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有我的访问能够将其加载到日食并能项目 - >构建所有它。编译未显示任何错误或警告。但在Eclipse中,有表现出了很大的错误。一个例子是:

I have got access to a C project at work that I have to implement some stuff in. I was able to load it into eclipse and can Project -> Build All it. Compilation shows no errors or warnings. But in eclipse, there are a lot of errors shown. One example:

有是一个枚举

typedef enum MeasurementType {
    PN, BB, AM, RES
} MEAS_TYPE;
MEAS_TYPE type;

中的文件中的一个。它用于其他地方,并产生一个错误是这样的:

in one of the files. It is used somewhere else and produces an error like this:

这是最有趣的,只有 AM 似乎是一个问题,而不是 PN BB

It is most interesting, that only AM seems to be a problem, not PN or BB.

我还没有找到一个令人满意的解决了这一点。我已经尝试包括所有可能的目录,我能想到的在项目属性 - > C / C ++常规 - >路径和符号(如这个帖子建议),但是这并没有帮助。

I haven't found a satisfying solution to this. I already tried to include all possible directories I could think of in Project Properties -> C/C++ General -> Paths and Symbols (like this post suggests), but that didn't help.

该项目本身编译生成文件(这就是为什么我需要项目 - >生成所有)。它可以是Eclipse不跨$ P $正确PT的Makefile文件什么的?我对这些东西乱搞了几个小时,没有得到向前迈进了一步后有点失落。

The project itself is compiled with Makefiles (which is why I need Project -> Build All). Can it be that eclipse does not interpret those Makefiles correctly or something? I am a bit lost after messing around with that stuff for a few hours and not getting a single step forward.

编辑:这里有一些屏幕截图我的构建相关项目属性(至少我相信他们培训相关:D)。如果您需要了解更多信息告诉我。

Here are some screenshots for my build-relevant project properties (at least I believe they are relevent :D). Tell me if you need more information.

推荐答案

看起来好像蚀(不GCC)是安装程序来解析错误或某些additonally,propably过时(含)的源文件。

It looks as if Eclipse (not gcc) is setup to parse the wrong or some additonally, propably outdated (include) source files.

这篇关于日食C ++项目显示错误(符号无法解析),但它编译的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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