[SOLVED] Undefined Reference to custom Static Library
Hi,
With supply issues currently, I have been working on 3 different micro controllers of the same family, STM32F4xx. I am trying to contain the hardware specific code in their own projects, 3 each for the processors. But I have common code that is used for all 3.
Now to solve this I have created a custom STM32 project that is setup to be a static library. This will contain all the common code. This builds fine and outputs a .a file, and the main project links to the library okay. But the problem comes during the linking stage and gives me undefined references to functions in the library.
In the main project settings -> C/C++ Build -> settings and in the Tool Setting tab, under MCU GCC Linker -> Libraries I have linked the library to allow the .a file to be found and linked to.
I was wondering if anyone else has been able to successfully create a static library and compile and link to it without having any undefined references?
