Content originally posted in LPCWare by daniel.widyanto on Sun Oct 14 21:24:26 MST 2012
Hi,
I've no idea what library that you're talking about, but like what Zero said:
[LIST=1]
[1] Copy the library's header file (*.h) to your project directory (eg. ${workspace_loc:/${ProjName}/dsp/inc} )
[2] Set the C/C++ compiler to look at that directory for any header files. Right click->Properties->Settings->MCU C Compiler->Includes. Make sure you select the directory that contains the header files (eg. ${workspace_loc:/${ProjName}/dsp/inc} instead of the upper dir that contains the whole library).
[3]Copy the library file (*.lib) to your project directory (eg. {${workspace_loc:/${ProjName}/dsp/lib} ).
[4] Tell the linker the path to find the library file: Right click->Properties->Settings->MCU C Linker->Libraries->'Library Search Path (-L)'. Set to the directory where the lib file is, not the top dir {eg. ${workspace_loc:/${ProjName}/dsp/lib} )
[5] Tell the linker the name of the library: Right click->Properties->Settings->MCU C Linker->Libraries->libraries (-l). If your library filename is 'libdsp.a', insert 'dsp' as the name. If your library filename is 'libcr_dsplipFFTbin_cm3.a', insert 'cr_dsplipFFTbin_cm3' as the name. If your library filename doesn't start with 'lib*.a', then rename it as 'lib<something>.a'. Otherwise, the GCC won't recognize the library.
[/LIST]