Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>After spending several days working on problems like this, I developed the following recipe for dealing with issue.</p> <p>I hope it helps you or others:</p> <h3>Summary: Usually, your problems in <em>eclipse</em> are due to eclipse configuration problems. The following assumes that your C++ code is building ok with <code>ndk_build</code> or <code>ndk_build.cmd</code> (on windows).</h3> <ul> <li><p>No joy with eclipse juno (4.2) and CDT version 8.1. Use eclipse indigo (3.7)</p></li> <li><p>Make sure that you have the CDT for indigo installed and enabled (version 8.0X) by looking in the "install new software". It defaults to installed but <em>not</em> enabled on indigo on some downloads.</p></li> <li><p>When you are dealing with native code or android config for native code, make <em>sure</em> you are in the C++/C perspective in eclipse, <em>not</em> the java one. It is deceptive, but there is a only a subset of options available in Java perspective. You can be sure you are C++/C perspective if you see "C/C++ general" as a choice when you do "Project > Properties."</p></li> <li><p>The usual problem is that the indexer in C/C++-land thinks there are errors when there is not (e.g. building with ndk-build works ok, often you can see this in the console window even). This is caused by bad paths in the "Paths And Symbols" part of "Project > Properties > C/C++ General" on the first tab.</p></li> <li><p>To fix the problem, the primary tool is to right-click on the project, select "Index" and "Search for unresolved includes." This will tell what files it can't find--and these are typically <em>not</em> the ones that you have in your files with the little pink mark by them.</p></li> <li><p>To find the right file, search in your NDKROOT directory (where you installed NDK). A typical one to add is: <code>${NDKROOT}/platforms/android-9/arch-arm/usr/include</code> or the right android-N for your android target. There are many copies of the standard include directories in the NDK because of multiple versions of android and copies of the C++ standard libraries.</p></li> </ul> <h3>Two big warnings</h3> <ul> <li><p>The "unresolved includes" view in eclipse does <em>not</em> automatically update when you change the indexer configuration on the Properties > C/C++ General/Paths and Settings so be sure to run it again each time. Most views in eclipse do this update properly!</p></li> <li><p>Also the little red/pink error markers in the source code views in the eclipse editor don't automatically update either. You have to "touch" the file in some way for it discover that the error is now fixed.</p></li> </ul>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload