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

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

问题描述

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



我的同事没有经历任何这些问题,但是我们无法解决这个问题。我们已经确保我们的Eclipse包含目录是一样的。有没有办法比较eclipse项目设置?



更新:.setpros目录中的.cproject文件和.project文件和文件只有一些路径不同。没有帮助解决我的问题。

解决方案

结果我需要更改启动选项卡上的代码分析设置,我只是没有看到该标签。




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.

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?

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 ++ Type也无法解决错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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