- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I've been working on a shared library of code for PSoC1/3/5 and needed to be able to reference
a shared respository of source code and include files that are located outside my project directory.
Solution description :
You have library of shared source code that you would like to re-use in several PSoC3/5 projects.
From the "Project -> Build Files -> Compiler" menu,
add your search path to the "Additional Include Directories" entry.
Use a semi-colon separated list for multiple directories..
See the attached screenshot example.
regards,
Tom Moxon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Tom,
Thank you for sharing your solutions, please keep it coming
Robert
p.s. was this a typo? "shared library of code for PSoC1/3/5" do you include PSoC 1 in your efforts?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Robert,
No that is NOT a typo - I am developing software that can be used either with PSoC Designer (PSoC1)
or PSoC Creator (PSoC3/5) or Eclipse (FX2/FX3-ARM9), the intent is to write once - use anywhere...
regards,
Tom Moxon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Great advice. In PSoC Creator 4.4 and PSoC 6, it's on Project->Build Settings->CM0+->Compiler->General->Additional Include Directories and Project->Build Settings->CM4->Compiler->General->Additional Include Directories.