Answer the question
In order to leave comments, you need to log in
How to add the simplemac-library.a library to an eclipse project?
Good afternoon.
It is necessary to add a library to the project, but I do not understand how.
eclipse mars2.0
arm-none-eabi 5.3 2016q1
stm32w108 An
error occurs
when trying to add a library via: C/C++ General -> Paths and Symbols -> Libraries
С:/arm_tools/arm/5.3 2016q1/bin/../lib/gcc/arm-none-eabi/5.3.1/../../../../arm-none-eabi/bin/ld.exe: cannot find -lС:\workspace\talk_test\Libraries\SimpleMAC\Binary\simplemac-library.a
collect2.exe: error: ld returned 1 exit status
-l С:\workspace\talk_test\Libraries\SimpleMAC\Binary\simplemac-library.a
Answer the question
In order to leave comments, you need to log in
Rename the library simplemac-library.a
to libsimplemac.a
Next, specify the path to the library and the name of the library without lib and the .a extension with the keys
possible without keys
In C / C ++ General -> Path and Symbols
In the Library Path we specify the path to the folder with the library С:\workspace\talk_test\Libraries\SimpleMAC\Binary
In Libraries we simply copy the name of the library without lib and the extension .a simplemac
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question