Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
20 years ago

Creating a code library

Hi:

How could we create a code library so a customer could link it to his application having only the *.h and the *.a files?

We created a managed library but we could not find a way to link an application to it. The linker never seems to find the library.a file, no matter what path, absolute or relative, we specified.

Thanks, a lot in advance.

2 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi VLorenzo,

    > but we could not find a way to link an application to it.

    > The linker never seems to find the library.a file, no matter what path,

    Make sure your pass the library path via the -L option, and the library

    via the -l option. Also, the library name should be something like

    "libxxx.a", and when using the -l option: "-lxxx".

    Regards,

    --Scott