Forum Discussion

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

Adding a C library to the NIOS 2 project

Does anyone know how to import a C library to the NIOS 2 project in Eclipse? I have a few source and header files in C which I want to add to my project and their functions. How do I do that? Can I simply copy the files in the workspace?

2 Replies

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

    if you have Nios II Library then it's maybe has specific configuration and it's better to import it in the eclipse and add the library path in the project, otherwise you can copy source (*.c) and headers (*.h) to your project source folder (not bsp folder) and rebuild the project.