Getting ": undefined reference to " error in project directory
Posted: Fri Jul 04, 2025 7:08 am
Hello,
I am getting undefined referance to error in my esp32 project
below is my project sturture
VWDIHD
├── components
| ├── ZIGbeeSDK
│ └── platform
│ └── inc
| | |- abc.h file extern uint16_t ashAckTimer;
| | #define ashStopAckTimer() do { ashAckTimer = 0; }
│ └── SRC
| | |- abc.c file uint16_t ashAckTimer; //
│ └── CMakeLists.txt
| SRC "abc.c"
| INCLUDE_DIRS "/inc"
├── main
│ └── CMakeLists.txt [init point]
|
|- CMakeLists.txt
the error i am getting is
undefined reference to `ashAckTimer'
FYI : kept header file in source "abc.c" file
Kindly let me know the reason
using espidf v5.4.1 with zigbee SDK4.4.6
Attached a image of projet where getting error
Kindly let me know the reasons
I am getting undefined referance to error in my esp32 project
below is my project sturture
VWDIHD
├── components
| ├── ZIGbeeSDK
│ └── platform
│ └── inc
| | |- abc.h file extern uint16_t ashAckTimer;
| | #define ashStopAckTimer() do { ashAckTimer = 0; }
│ └── SRC
| | |- abc.c file uint16_t ashAckTimer; //
│ └── CMakeLists.txt
| SRC "abc.c"
| INCLUDE_DIRS "/inc"
├── main
│ └── CMakeLists.txt [init point]
|
|- CMakeLists.txt
the error i am getting is
undefined reference to `ashAckTimer'
FYI : kept header file in source "abc.c" file
Kindly let me know the reason
using espidf v5.4.1 with zigbee SDK4.4.6
Attached a image of projet where getting error
Kindly let me know the reasons