<?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: mwldmcf.exe linker can't find library in CodeWarrior for MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/mwldmcf-exe-linker-can-t-find-library/m-p/250308#M9640</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Apparently the linker is looking for a file called libcf.a.&lt;/P&gt;&lt;P&gt;How did you set environment variable MWLibraryFiles?&lt;/P&gt;&lt;P&gt;How does your linker command line look like? Which arguments are you passing there?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CrasyCat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Feb 2013 07:53:56 GMT</pubDate>
    <dc:creator>CrasyCat</dc:creator>
    <dc:date>2013-02-07T07:53:56Z</dc:date>
    <item>
      <title>mwldmcf.exe linker can't find library</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/mwldmcf-exe-linker-can-t-find-library/m-p/250307#M9639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get the following linker error, and I don't know why.&lt;/P&gt;&lt;P&gt;"### mwldmcf.exe Usage Error:&lt;/P&gt;&lt;P&gt;#&amp;nbsp;&amp;nbsp; No library file found matching 'libcf{.dylib|.a}' or 'cf'"&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using the following flags for the linker to specify the libraries:&lt;/P&gt;&lt;P&gt;-lr "C:\Program Files\Freescale\CodeWarrior for ColdFire V7.0\ColdFire_Support\msl\MSL_C\MSL_ColdFire\Lib"&lt;/P&gt;&lt;P&gt;-lr "C:\Program Files\Freescale\CodeWarrior for ColdFire V7.0\ColdFire_Support\Runtime" &lt;/P&gt;&lt;P&gt;-lr "C:\Program Files\Freescale\CodeWarrior for ColdFire V7.0\ColdFire_Support\Libraries"&lt;/P&gt;&lt;P&gt;-l+C_4i_CF_Runtime.a &lt;/P&gt;&lt;P&gt;-l+C_4i_CF_SZ_MSL.a&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I even have the environment variables set:&lt;/P&gt;&lt;P&gt;CWFolder=C:\Programs Files\Freescale\CodeWarrior\CodeWarrior for ColdFire V7.0&lt;/P&gt;&lt;P&gt;MWLibraries=%CWFolder%\ColdFire_Support\Libraries;%CWFolder%\ColdFire_Support\Runtime;%CWFolder%\ColdFire_Support\msl\MSL_C\MSL_ColdFire\Lib&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I followed this post: &lt;A _jive_internal="true" data-containerid="2031" data-containertype="14" data-objectid="302904" data-objecttype="1" href="https://community.nxp.com/thread/302904"&gt;How to use Linker from command line(error: mwldmcf.exe: No library file found matching&amp;nbsp; mwldmcf.exe: 'libC_TRK_4i_CF_SZ_MSL.a{.dylib|.a}' or 'C_TRK_4i_CF_SZ_MSL.a' )&lt;/A&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I searched for "libcf.a", "cf.a", and "*.dylib" in the CWFolder and I get no results.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any advice or tips?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Feb 2013 19:06:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/mwldmcf-exe-linker-can-t-find-library/m-p/250307#M9639</guid>
      <dc:creator>michaeld</dc:creator>
      <dc:date>2013-02-06T19:06:55Z</dc:date>
    </item>
    <item>
      <title>Re: mwldmcf.exe linker can't find library</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/mwldmcf-exe-linker-can-t-find-library/m-p/250308#M9640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Apparently the linker is looking for a file called libcf.a.&lt;/P&gt;&lt;P&gt;How did you set environment variable MWLibraryFiles?&lt;/P&gt;&lt;P&gt;How does your linker command line look like? Which arguments are you passing there?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CrasyCat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2013 07:53:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/mwldmcf-exe-linker-can-t-find-library/m-p/250308#M9640</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2013-02-07T07:53:56Z</dc:date>
    </item>
    <item>
      <title>Re: mwldmcf.exe linker can't find library</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/mwldmcf-exe-linker-can-t-find-library/m-p/250309#M9641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;MWLibraryFiles is not defined in my "CodeWarrior Development Studio ColdFire® Architectures Edition Build Tools Reference" which I found under the help documentation, so I do not have it set to anything.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following is the command being passed to the linker with the project object file name redacted:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"C:\Program Files\Freescale\CodeWarrior for ColdFire V7.0\ColdFire_Tools\Command_Line_Tools\mwldmcf.exe" -lcf "lcf\MCF52211_INTERNAL_FLASH.lcf" -processor MCF521X -msgstyle gcc -lr "C:\Program Files\Freescale\CodeWarrior for ColdFire V7.0\ColdFire_Support\msl\MSL_C\MSL_ColdFire\Lib" -lr "C:\Program Files\Freescale\CodeWarrior for ColdFire V7.0\ColdFire_Support\Runtime" -lr "C:\Program Files\Freescale\CodeWarrior for ColdFire V7.0\ColdFire_Support\Libraries" -main '__startup' -force_active '__vect','__cfm' -sreclength 32 -breclength 252 -sreceol unix -keeplocal off -nodeadstrip -listing -show all -warn on -g&amp;nbsp; -l+C_4i_CF_Runtime.a -l+C_4i_CF_SZ_MSL.a&amp;nbsp; [list of project specific '.o' object files] -o bin/MCF52211_INTERNAL_FLASH.elf&lt;/P&gt;&lt;P&gt;mwldmcf.exe: No library file found matching 'libcf{.dylib|.a}' or 'cf'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Errors caused tool to abort.&lt;/P&gt;&lt;P&gt;make: *** [bin/MCF52211_INTERNAL_FLASH.elf] Error 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Notably, this is the first invocation of the linker on the object files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*EDIT: One thing that I just noticed was the the processor I have specified is "MCF521X".&amp;nbsp; This is listed on its own in the command line help, but the IDE has "MCF521x/5221x/5222x" all in one option.&amp;nbsp; I am assuming that the processor option I chose for the command line actually covered the processors as stated in the IDE, but I may be wrong.&amp;nbsp; I don't see anything in the docs to clarify this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Michael D&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2013 19:16:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/mwldmcf-exe-linker-can-t-find-library/m-p/250309#M9641</guid>
      <dc:creator>michaeld</dc:creator>
      <dc:date>2013-02-07T19:16:30Z</dc:date>
    </item>
    <item>
      <title>Re: mwldmcf.exe linker can't find library</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/mwldmcf-exe-linker-can-t-find-library/m-p/250310#M9642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The option -lcf is creating trouble.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In order to specify the .lcf file used for linking just add the path to the .lcf file to your linker command line. &lt;/P&gt;&lt;P&gt;I would remove the option -lcf "lcf\MCF52211_INTERNAL_FLASH.lcf" and just add lcf\MCF52211_INTERNAL_FLASH.lcf right before the list of object files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CrasyCat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2013 07:13:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/mwldmcf-exe-linker-can-t-find-library/m-p/250310#M9642</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2013-02-08T07:13:13Z</dc:date>
    </item>
    <item>
      <title>Re: mwldmcf.exe linker can't find library</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/mwldmcf-exe-linker-can-t-find-library/m-p/250311#M9643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi CrasyCat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That solved the issue I was having! Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After modifying the linker command a bit to make sure that I am specifying all the windows paths correctly, I am now consistently getting an application error.&amp;nbsp; Please see here: &lt;A href="https://community.nxp.com/message/315158"&gt;mwldmcf.exe application error memory read&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I consider this thread answered.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2013 18:24:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/mwldmcf-exe-linker-can-t-find-library/m-p/250311#M9643</guid>
      <dc:creator>michaeld</dc:creator>
      <dc:date>2013-02-08T18:24:46Z</dc:date>
    </item>
  </channel>
</rss>

