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

variables "not declared in this scope"

Hello,

I am using Eclipse to create a project using code from ble_app_hrs and I am developing for a nrf52832 chip. Unfortunately, I am getting a "was not declared in this scope" for almost every variable I am including from another file of the SDK. My output parser compiler command pattern settings are set to "(.gcc)|(.[gc]++)" and the CDT GCC built-in Compiler settings Cross Arm command to get compiler specs are "arm-none-eabi-gcc ${FLAGS} ${cross_toolchain_flags} -E -P -v -dD "${INPUTS}" .

image description

As you can see from the above screenshot, even memset is not recognized.

I don't have any issue seeing the files I included and I have placed all of my included files in "project properties > C/C++ General >paths and symbols" for all three categories: assembly, Gnu C, Gnu C++. I am at a loss as to why this is happening and to the best of my knowledge I have properly followed the tutorial found here: devzone.nordicsemi.com/.../

Any help would be incredibly appreciated as I am close to pulling my hair out! If anybody needs more information, I will gladly give it ASAP!

Thanks!

Related