Forum Discussion

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

Add software library into system library

Hi,

I have create several managed libraries with NIOS IDE and want then to be compiled and integrate into the system library of my design to have them available while compiling the system drivers.

Those any one know how to do that ?

Thanks for any help

Regards

Fabrice Mousset

1 Reply

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

    You could just copy the source into the system library project. Alternatively, instead of linking against your library using the -l flag, e.g. -lmylib to link against libmylib.a, use the flag -msys-lib, e.g. -msys-lib=mylib. This will allow the linker to resolve the circular dependency problems that I suspect you were having when trying to call library functions from drivers.