This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Error in eclipse "symbol could not be resolved"

I'm trying to use gcc and eclipse but I'm getting an error in eclipse that certain variable names cannot be resolved. I know that its not being able to get the variable names from other source files but I have linked every source file as shown in the tutorial. What's weird is that it's able to get all the functions from other source files but not variables. Any idea of what im doing wrong. I did the following steps as mentioned in the tutorial

devzone.nordicsemi.com/.../

Click on CDT GCC Build Output Parser and change the compiler command pattern from (gcc)|([gc]++)|(clang) to (.gcc)|(.[gc]++) then apply changes.

Click on CDT Built-in Compiler Settings Cross ARM and replace ${COMMAND} with arm-none-eabi-gcc and click Apply.

I have followed those steps but still it gives me error. In the picture below im using a simple blinky example and as you can see I have included the source file but still the eclipse can't retrieve the variable but when it comes to functions everything is working fine.

image description

This becomes more difficult for ble examples

image description

Related