Content originally posted in LPCWare by TheFallGuy on Thu May 16 09:36:59 MST 2013
You have a few choices. But first, you probably need to understand how LPCXpresso (Eclipse) builds projects.
For a C project, LPCXpresso will compile (to an object file) every source file that it can find within the project (unless it has been explictly excluded).
The linker will then take every object file, and any other external libraries or object files explicitly defined in the linker settings and link them together to create an executable (axf) file.
The linker will not 'find' object files unless you tell it where to find them...
So, your options are:
1. use the example project as a library and just link with the library in your project
2. Use "Linked Resources" to link directories from the example project into your project. This creates a link (NOT a copy) to the files in the example project, so that they appear to be in your project. As they now appear in your project, LPCXpresso will compile and link them
3. Copy/paste the example source files into your project
There is lots of information in the Help - (Help->Help Contents)