The following C++ application compiles and runs successfully within Eclipse CDT but the IDE is still reporting an error stating:
what helped me was on the jni folder press the right mouse button properties > c/c++ general > paths and symbols add the same paths as in project > properties c/c++ general > paths and symbols
hope it helps