LpcXpresso - Linked File not compiling

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by Carl-SolderSplash on Mon Apr 22 16:53:40 MST 2013

Hi, A question reguarding project structuring in LpcXpresso, My file structure as follows :


|- src


|- src


|-Cmsis files






I have Lpcxpresso projects set up in Myproj1 and Myproj2, linked to CMSIS and compiling.

Now I want to use shared source in the Shared_Src folder between projects, rather than duplicating it. The shared source files are stored outside of the project folder as shown above.

I've done two things, first added it to the include search path, using the following : "${build_project}../../shared_src/" this works and header files in the shared_src can be reference by my project. 

Next I need to use code in the shared_src dir, so I imported it into the project chosing the link option "Create links in workspace" this then adds to the shared_src folder and it's files as links, rather than duplicating them.

But the code fails to link when calling a function in shared_src from the project.

Any ideas, my goal is to have 1 or more projects share some of the same code. This shared code is configured based upon defines in the project so isn't a standalone lib.