Skip to main content
Takayoshi Ishii
Associate III
Jan 31, 2018 3:29 PM UTC
Solved

How to link a static library?

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.
    Tesla DeLorean
    Tesla DeLoreanBest answer
    Guru
    Jan 31, 2018 3:41 PM UTC
    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..

    3 replies

    Tesla DeLorean
    Tesla DeLoreanBest answer
    Guru
    Jan 31, 2018 3:41 PM UTC
    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
    Jan 31, 2018 4:33 PM UTC
    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
    Feb 1, 2018 1:12 AM UTC
    Posted on February 01, 2018 at 02:12

    Thank you guys!

    It was so easy...