Associate
August 7, 2020
Question
undefined reference to "a c function in main.cpp"
- August 7, 2020
- 5 replies
- 7606 views
I am getting errors "undefined reference to two c function " screenshot and whole project archived file is attached here.
This project was initially generated by STM32CubeIde as c project then I converted it to c++ using the option "convert to c++ project", main.c was renamed to main.cpp. I don't have any issue with it.
I added the source .c and include .h files appropriately, I still get the error as shown above the two functions.