Forum Discussion

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

create independant library under IDE

Hi all,

How can I compile a C library source files under the Nios II IDE?

I have the sources and the includes and I want to build the libray (files like *.a).

Best regards http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/smile.gif

2 Replies

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

    Hi

    Just go in Altera system manage library and make a *.a (static library). It is independent of *.ptf

    Now create your C/C++ application using your NIOS IDE and link the Library name and its path to the current project using Linker option under "C/C++ build" option.

    And you can get the help from NIOD IDE help also....

    Best Regards,

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

    Hi,

    You can create a "Managed Library Project" in NiosII IDE.

    Following the steps below:

    1.New a project

    2.Choose Altera NiosII->Managed Library Project

    The more info pls find in NiosII IDE->Help->Help Content, and search with the key word "Managed Library".