|
Re: Include another folders into eclipse projects [message #1830620 is a reply to message #1830587] |
Thu, 30 July 2020 03:18 |
David Vavra Messages: 1426 Registered: October 2012 |
Senior Member |
|
|
There are a couple of ways to achieve this.
1) link to directory Common in each project
The link can be a system link or an Eclipse simulated link.
The latter is made with File --> New --> Folder
and selecting Link to alternate location under Advanced
Eclipse will then act as if the common code is part of each project.
2) create a common library and link to it in Proj-A and Proj-B
You will need to tell both Proj-A and Proj-B where the common header files are.
This means setting the path to it in Project --> Properties --> C/C++ General --> Preprocessor Include Paths, Macros etc.
and, if you are using a managed build,
in the Include settings for each compiler in Project --> Properties --> C/C++Build --> Settings --> Tool Settings tab
|
|
|
Powered by
FUDForum. Page generated in 0.02879 seconds