I am using Eclipse Indigo with a mixed Android / NDK project. I added the nature of C ++ and almost everything works. Automatic assembly of work; that is, when I edit the file, ndk-build is called and succeeds - no build errors. Working with a code mouse assistant (a small window appears with information about the function). If I put the cursor on the power line and press F3, the corresponding header file will open (not the one I would expect based on my configuration, but the corresponding one - maybe the key?).
If I select the following line in my .cpp file, it opens $ NDKROOT / platform / android-3 / arch-arm / usr / include / ctype.h:
#include <ctype.h>
(isdigit is defined in this file)
However, Eclipse insists that isdigit is undefined. I read a lot of posts about blaming a static analyzer or indexer, but I tried many of the suggested solutions to no avail.
If I add a line as shown below, the error will disappear and the helper code to support the function works:
extern int isdigit(int);
Again, this is not a linker error or a compiler error - ndk-build exits without errors. This is something inside an eclipse. Thanks for watching!
Edit: Now I believe this is a problem with code analysis. The best solution is to edit the code analysis parameters so that the “function could not be enabled” instead of a warning is a warning. Thus, you can see warnings in the Problems view, but continue to work. If the function is REALLY missing, the compiler will tell you! I also have a new theory that the problem lies in the Code Analyzer after symbolic links, because all the "missing" functions are contained in files with symbolic inclusions. I would like to love any contribution to this theory.
source share