Content originally posted in LPCWare by CodeRedSupport on Sun Apr 24 01:59:04 MST 2011
In the Linker, to specify a library to be linked against, use the -lMY_LIBRARY option. The linker will look for a library called libMY_LIBRARY.a.
The linker will search in a set of default (system) directories for libMY_LIBRARY.a. To add an another to the list of directories searched, use -Lpath/to/my/directory. It can be a relative, or an absolute path.
In LPCXpresso IDE, these options are on the MCU Linker/Libraries settings in the project properties. On the Library Paths, option, buttons are provided so you can browse the file system or the workspace for the directory.
Hope that is clear.