Loading...
 
Skip to main content

System Workbench for STM32


Linker file cannot find my libraries

Hi Daniel,

Can you rename your file "MyLib.a" into "libMyLib.a" and change the library reference in Properties > C/C++ General > Paths and Symbols > Libraries from "MyLib.a" into "MyLib".

As Stefano said, with the GNU GCC toolset, the static library file name should contain the suffix "lib" and the library build (-lxxxx) option is the library name without suffix nor extension.

Hope it will help you,
Kevin.