<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Specifying libraries in LPCXpresso IDE</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/Specifying-libraries/m-p/571852#M20790</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by lpcxpresso-support on Thu Jan 23 01:24:55 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;This is standard GCC behaviour&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;From the GCC linker docs included in the LPCXpresso built in help, or online in various places such as:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fsourceware.org%2Fbinutils%2Fdocs-2.21%2Fld%2FOptions.html%23Options" rel="nofollow" target="_blank"&gt;http://sourceware.org/binutils/docs-2.21/ld/Options.html#Options&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;-l namespec&lt;BR /&gt;--library=namespec&lt;BR /&gt;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.&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And for general information on using your own libraries in LPCXpresso see:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.lpcware.com%2Fcontent%2Ffaq%2Flpcxpresso%2Fcreating-linking-library-projects" rel="nofollow" target="_blank"&gt;http://www.lpcware.com/content/faq/lpcxpresso/creating-linking-library-projects&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPCXpresso Support&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 23:49:00 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T23:49:00Z</dc:date>
    <item>
      <title>Specifying libraries</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Specifying-libraries/m-p/571851#M20789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by jdupre on Wed Jan 22 10:22:50 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;By default, when LPCXpresso generates a static library, the output filename is prefixed with "lib".&amp;nbsp; That is, library project "my_library" will have an output file of "libmy_library.a"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;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.&amp;nbsp; If you do, you'll get this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;c:/nxp/lpcxpresso_6.1.0_164/lpcxpresso/tools/bin/../lib/gcc/arm-none-eabi/4.6.2/../../../../arm-none-eabi/bin/ld.exe: cannot find -llibmy_library&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, if you do not add the "lib" prefix to the library name the linker can not find the library. Why the naming inconsistency?&amp;nbsp; Is this a GCC quirk?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:48:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Specifying-libraries/m-p/571851#M20789</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:48:59Z</dc:date>
    </item>
    <item>
      <title>Re: Specifying libraries</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Specifying-libraries/m-p/571852#M20790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by lpcxpresso-support on Thu Jan 23 01:24:55 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;This is standard GCC behaviour&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;From the GCC linker docs included in the LPCXpresso built in help, or online in various places such as:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fsourceware.org%2Fbinutils%2Fdocs-2.21%2Fld%2FOptions.html%23Options" rel="nofollow" target="_blank"&gt;http://sourceware.org/binutils/docs-2.21/ld/Options.html#Options&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;-l namespec&lt;BR /&gt;--library=namespec&lt;BR /&gt;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.&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And for general information on using your own libraries in LPCXpresso see:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.lpcware.com%2Fcontent%2Ffaq%2Flpcxpresso%2Fcreating-linking-library-projects" rel="nofollow" target="_blank"&gt;http://www.lpcware.com/content/faq/lpcxpresso/creating-linking-library-projects&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPCXpresso Support&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:49:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Specifying-libraries/m-p/571852#M20790</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:49:00Z</dc:date>
    </item>
    <item>
      <title>Re: Specifying libraries</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Specifying-libraries/m-p/571853#M20791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by starblue on Thu Jan 23 01:52:22 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: jdupre&lt;/STRONG&gt;&lt;BR /&gt;Why the naming inconsistency?&amp;nbsp; Is this a GCC quirk&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt;No, this is standard Unix ld behavior since the beginning.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fman.cat-v.org%2Funix-1st%2F1%2Fld" rel="nofollow" target="_blank"&gt;http://man.cat-v.org/unix-1st/1/ld&lt;/A&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:49:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Specifying-libraries/m-p/571853#M20791</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:49:00Z</dc:date>
    </item>
  </channel>
</rss>

