Loading...
 
Skip to main content

System Workbench for STM32


Linker file cannot find my libraries

France

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

  1. To manually rename STemWin528_CM4_GCC.a to, for example, libSTemWin.a
  2. 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)