Eclipse CDT shows ... not resolved errors for ARM neon intrinsics, but produces the binary

310 views Asked by At

I develop ARM-Neon based embedded software for Cortex A8 and A9 processors. I use Eclipse CDT Luna for development environment.

I opened a project and added

#include "arm_neon.h"

at the beginning of my main code, and the following flags to both C++ compiler and linker miscellaneous flags part in project settings:

-mfloat-abi=softfp -march=armv7-a -mtune=cortex-a9 -mfpu=neon 

My indexer does not show any error in "#include arm_neon.h" line, but it underlines each neon function I use with red. Produces many "unresolved" error. But when I build the project, it produces an ARM binary and it works well. What may be the problem?

When I have an ACTUAL problem, it is lost among zillions of others...

1

There are 1 answers

0
Paul R On BEST ANSWER

Change:

#include "arm_neon.h"

to:

#include <arm_neon.h>

Watch out for this in future - often <> and "" are interchangeable, but in some cases it can make an important difference. Always use <> for system headers and "" for user headers.