Home > Article > Backend Development > Why Do I Get Semantic Errors in Eclipse After Updating My NDK?
Semantic Errors in Eclipse After NDK Update
Eclipse users may encounter semantic errors after updating their NDK, despite successful compilation. This issue, commonly reported on StackOverflow, affects projects that utilize OpenCV4Android.
Symptoms:
Compilation succeeds, but Eclipse displays semantic errors, particularly for symbols like distance, pt, queryIdx, and trainIdx. These errors occur when C files from the jni folder are opened in Eclipse.
Troubleshooting Steps:
Observations:
Solution:
To resolve this issue, go to the following project preferences in Eclipse:
C/C++ General -> Code Analysis -> Launching
Uncheck both checkboxes:
Conclusion
By unchecking these checkboxes, the CDT index is disabled during launch, preventing it from generating semantic errors. Eclipse will then successfully compile projects without these errors.
The above is the detailed content of Why Do I Get Semantic Errors in Eclipse After Updating My NDK?. For more information, please follow other related articles on the PHP Chinese website!