Eclipse CDT C / C ++ code completion issue in NDK / Java project

I have an Android (Java) project, which includes some native C / C ++ code, and I need it to be able to encode the code on different classes and functions of C. However, the option to enable the source (full) source is not available in the project Android (Java).

Does anyone know a way: 1) Does Trick Eclipse include the necessary element of the Project Properties panel (side panel)? 2) Include files manually using some form of configuration file?

Thanks Kevin

+4
source share
1 answer

There are two main ways to install the NDK constructor in Eclipse:

  • Creating a custom builder is a little easier to set up and more portable, but does not automatically complete C ++, and you cannot go to the source file by double-clicking on the error console. (This seems to be your case.)
  • CDT based creator - leads to a less portable configuration, but provides all the IDE features for the JNI code.

Here is a good tutorial for configuring CDT:
http://mhandroid.wordpress.com/2011/01/23/using-eclipse-for-android-cc-development/

To enable code completion for external sources (and for standard Android headers), you need to open Project Properties> C / C ++ general> Paths and Symbols and add to the list of included paths:

enter image description here

NDKROOT is an environment variable containing the path to my NDK

+13
source

All Articles