从Eclipse的虚假的错误:功能“__android_log_print”无法解析(安卓,CDT) [英] false error from Eclipse: Function '__android_log_print' could not be resolved (Android, CDT)

查看:748
本文介绍了从Eclipse的虚假的错误:功能“__android_log_print”无法解析(安卓,CDT)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Android NDK项目,其NDK部分编译命令行确定; 我以前有没有问题,在Eclipse下运行的编译的东西作为一个纯粹的Java项目。但我把它转换为C / C ++项目,现在甚至不能运行。

I have an Android NDK project whose NDK part compiles ok from command line; I used to have no problems with running the compiled stuff from under Eclipse as a pure Java project. But I converted it to a C/C++ project and now cannot even run it.

我在控制台,该库建立看到, 但是:Eclipse的告诉我,我的项目有错误,它不会运行。 (为什么地球上呢?code的的编译!)

I see in the "Console" that the library is built, BUT: Eclipse tells me that my project has errors and it will not run it. (Why on Earth? The code is compiled!!!)

我已经通过添加包含路径的项目属性解析缺失符号的一些问题。

I have resolved some issues with missing symbols by adding include paths to the project properties.

但我仍然得到这个奇怪 函数__android_log_print无法解析 错误。

But I'm still getting this weird Function '__android_log_print' could not be resolved error.

于是,两个问题:

  1. 如何摆脱这种错误?(可忽略不计?)
  2. 计划?B:我要如何转换这种混合的C / C ++ / Java项目,以一个纯Java的一个
  1. How do I get rid of this error? (Can it be ignored?)
  2. Plan B: how do I convert this mixed C/C++/Java project to a pure Java one?

= = =

PS您拨打的船,所以它会做。难道不是因为找到一个IDE一个更好的名字,像清醒编码? (修辞问题)

PS "As you call the ship, so it will do". Could not they just find a better name for an IDE, something like "Lucid coding"? (Rhetoric question)

= = =

更新:它看起来像Eclipse只为它看到的文件报告错误(也就是显示你)。我已经打开了LOGD宏另一个文件,和Eclipse它报告了一个错误了。我已经关闭了所有的文件窗口,关闭Eclipse中的的删除的.something文件。在那之后,我能够运行应用程序。我没有冒险打开源文件与记录宏。 (这与清醒编码很远,不是吗?)

UPDATE: It looks like Eclipse reports errors only for the files that it sees (that is, shows you). I have opened another file with a LOGD macro, and the Eclipse reported an error for it too. I have closed all file windows, closed Eclipse and deleted a .something file. After that, I was able to run the application. I did not risk to open the source files with that logging macro. (That's very far from "Lucid coding", isn't it?)

推荐答案

CDT索引器的配置需要,使指标未使用的头......

The configuration of CDT indexer needs to enable "Index unused headers ..."

如何到达:项目 - >属性 - > C / C ++通用>索引

How to get there: Project->Properties->C/C++ General->Indexer.

输入图像的描述在这里

摆脱错误的我。

这篇关于从Eclipse的虚假的错误:功能“__android_log_print”无法解析(安卓,CDT)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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