L
L
list_get2016-09-09 13:59:23
Eclipse
list_get, 2016-09-09 13:59:23

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

I tried to manually register
In C / C ++ build -> Settings -> Tool Settings -> Cross ARM C ++ Linker -> Command
-l С:\workspace\talk_test\Libraries\SimpleMAC\Binary\simplemac-library.a

changed the slash to the opposite (advised on the Stm forum), but the result is zero.
Can anyone suggest what is the problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
list_get, 2016-09-12
@list_get

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 question

Ask a Question

731 491 924 answers to any question