Linker file cannot find my libraries
Here, the problem is due to the fact that, for GCC, libraries should have a name starting by “lib” and finish by “.a”; here STemWin528_CM4_GCC.a can’t be included simply
The simplest way to include it needs
- To manually rename STemWin528_CM4_GCC.a to, for example, libSTemWin.a
- To add two settings, both located in project >> Properties >> C/C++ Build >> Settings >> MCU GCC Linker >> Libraries:
- in the Libraries (-l) pane, add STemWin
- in the Library search path pane add ${ProjDirPath}/Middlewares/ST/STemWin/Lib
Then the linker should find the STemWin library
Hope this helps,
Bernard (Ac6)