Skip to main content
Takayoshi Ishii
Associate III
January 31, 2018
Solved

How to link a static library?

  • January 31, 2018
  • 3 replies
  • 1925 views
Posted on January 31, 2018 at 16:29

Hello,

Let me know how to link a static library.

I made a PCB with STM32L0, and use keil uVision5 environment.

I want to use a static library like 'xx.a', but I don't know how to link it.

I checked 'Options for Target' -> 'Linker', but I don't think I can edit the linker string.

    This topic has been closed for replies.
    Best answer by Tesla DeLorean
    Posted on January 31, 2018 at 16:41

    Just add it to the project, ie Add Existing File to Group, select the *.a, *.o or *.lib

    3 replies

    Tesla DeLorean
    Tesla DeLoreanBest answer
    Guru
    January 31, 2018
    Posted on January 31, 2018 at 16:41

    Just add it to the project, ie Add Existing File to Group, select the *.a, *.o or *.lib

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    Andrew Neil
    Super User
    January 31, 2018
    Posted on January 31, 2018 at 17:33

    Very first hit on putting 'keil add library to project' into google:

    http://www.keil.com/support/docs/3189.htm

     
    A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
    Takayoshi Ishii
    Associate III
    February 1, 2018
    Posted on February 01, 2018 at 02:12

    Thank you guys!

    It was so easy...