Content originally posted in LPCWare by jdupre on Wed Jan 22 10:22:50 MST 2014 By default, when LPCXpresso generates a static library, the output filename is prefixed with "lib". That is, library project "my_library" will have an output file of "libmy_library.a"
However when specifying the library in another project (via Properties| C/C++ Build|Settings|MCU Linker|Libraries) you should NOT include the "lib" prefix in the library name. If you do, you'll get this:
Content originally posted in LPCWare by starblue on Thu Jan 23 01:52:22 MST 2014 Quote: jdupre Why the naming inconsistency? Is this a GCC quirk No, this is standard Unix ld behavior since the beginning.
Quote: -l namespec --library=namespec Add the archive or object file specified by namespec to the list of files to link. This option may be used any number of times. If namespec is of the form :filename, ld will search the library path for a file called filename, otherwise it will search the library path for a file called libnamespec.a.