Skip to main content
NS.16
Associate III
March 11, 2019
Question

identifier "xxxx" undefined

  • March 11, 2019
  • 7 replies
  • 2799 views

i have project code when i compile it shows identifier is undefined

But i have included the path keil linker options and included header file also, i don't know why it shows like this.

when i click the definition of VL53L0A1_GPIO1_R_INTx it doesn't go to definition part.But the definition is written in the code.

Help me please.

my error:

..\..\Drivers\BSP\X-NUCLEO-53L0A1\X-NUCLEO-53L0A1.c(532): error: #20: identifier "VL53L0A1_GPIO1_R_INTx" is undefined

thank you in advance.

This topic has been closed for replies.

7 replies

AvaTar
Senior III
March 11, 2019

> when i click the definition of VL53L0A1_GPIO1_R_INTx it doesn't go to definition part.But the definition is written in the code.

What exactly do you talk about ?

Working with an Eclipse toolchain?

Mind you, what the parser sees is not necessary what the compiler sees.

NS.16
NS.16Author
Associate III
March 11, 2019

I am working in keil

Tesla DeLorean
Guru
March 11, 2019

So project perhaps lacks required command line defines, or include paths.

Lacks required include files.

Doesn't flag appropriate modules in stm32f4xx_hal_conf.h or equivalent.​

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
NS.16
NS.16Author
Associate III
March 11, 2019

i have included the path of that file.

AvaTar
Senior III
March 11, 2019

That was not the point.

If you e.g. place an "#error" preprocessor directive in the line above your definition of "VL53L0A1_GPIO1_R_INTx", does the build throw this # error ?