简体   繁体   中英

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

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...

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM