- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi everyone
Can anyone help me with what seems like a basic question? How do I use source files in a NiosII project when they are not actually stored in the project directory? For example my main project is located in: C:\Projects\MyProject and C:\Projects\MyProject_syslib But I have another directory: C:\Projects\MyCommonStuff in which I want to store common source files used on several different nois projects. I have two problems: 1. How do I tell the IDE where to find header files e.g.# include <MyCommonFile.h>. I tried adding the path to the project's "Include Paths" but it still says "no such file". 2. How do I tell the IDE I want to add files from my common files folder? I really don't want to have to copy the actual files into project directory since I only want to add improvements to a single file and then just re-compile all projects that reference them.Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
That's called a "Managed Library" (it's one of the choices for when you create a project). It will create all the necessary files for bringing it into your application project. First you create the managed library and compile it (release or debug mode). Then in your application project you have to specify the: Library name, the library archive (.a file) search path, and the library include path (note this is all from memory and unfortunately I'm not at a machine that I can confirm this with). But in short the managed library has the source code you want to put in a common folder, and your application includes it (using the managed library and the common include files)
I hope that gets you started at least, and that someone else can give better instructions.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page