Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++

Creating a code library

Altera_Forum
Honored Contributor II
898 Views

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.
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
246 Views

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
0 Kudos
Altera_Forum
Honored Contributor II
246 Views

Thanks Scott!

0 Kudos
Reply