Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

PSoC™ Creator & Designer Forum Discussions

Anonymous
Not applicable

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

   

www.moxon.com

   

www.westmarkco.com

0 Likes
2 Replies
Anonymous
Not applicable

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?

   
0 Likes
Anonymous
Not applicable

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

   

www.moxon.com

   

www.westmarkco.com

0 Likes