Eclipse c ++类型无法解析错误,即使构建成功 [英] Eclipse c++ Type could not be resolved error even though build is successful

查看:689
本文介绍了Eclipse c ++类型无法解析错误,即使构建成功的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Eclipse中混合使用了C ++ / Java项目。我已经设置了一个build.mk文件和Eclipse构建项目成功,当编辑器中的所有文件关闭。当我打开一个.h或一个.cpp文件时,Eclipse在其中找到很多未定义的符号。我有参考第三方API和所有的问题似乎与该API的符号相关。奇怪的是,一些类型被认为是在Eclipse中定义的,有些被认为是未定义的,即使在某些情况下它们被定义在同一个.h文件中。

I have mixed C++ / Java project in Eclipse. I've setup a build.mk file and Eclipse builds project successfully when all files in editor are closed. When I open a .h or a .cpp file Eclipse finds a lot of undefined symbols in them. I have references to 3rd party API and all the problems seem to be related to symbols from that API. Strangely, some types are considered defined in Eclipse, and some are considered undefined even though in some cases they are defined in the same .h file.

我的同事没有体验任何这些问题,但我们无能为力开始解决这个问题。我们已经确保我们的Eclipse包含目录是相同的。有没有什么方法比较eclipse项目设置?

My colleague is not experiencing any of these problems, but we are clueless where to start solving this problem. We already made sure that our Eclipse include directories are the same. Is there some way to compare eclipse project settings?

更新:.cproject文件和.project文件和.settings目录中的文件知道不同的只是一些路径。

Update: .cproject files and .project files and files in .settings directory know differ only by some paths. Did not help to solve my problem though.

推荐答案

结果我需要更改启动标签上的代码分析设置,我根本没有看到该标签。

Turns out I needed to change Code Analysis settings that are on Launching tab, and I simply did not see that tab.

这篇关于Eclipse c ++类型无法解析错误,即使构建成功的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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