<?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>CodeWarrior for MCUのトピックRe: Disable automatic external object creation by linker</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Disable-automatic-external-object-creation-by-linker/m-p/382006#M11409</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Erich,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks! That solved the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Rosario&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Dec 2014 00:54:52 GMT</pubDate>
    <dc:creator>rvumbaca</dc:creator>
    <dc:date>2014-12-03T00:54:52Z</dc:date>
    <item>
      <title>Disable automatic external object creation by linker</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Disable-automatic-external-object-creation-by-linker/m-p/382002#M11405</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 am using CW for MCU 10.6 with HCS08.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I define an extern variable but it is not actually declared anywhere (or if I set it to 'static' and try to access it from a different module using an 'extern' declaration) the linker will generate the warning L1823 and will automatically create the object locally.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do not want this behaviour, instead I want a linker error to be generated as expected.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to disable this 'feature' in the linker? I have looked through the options and searched through these forums, but have found no solution.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Rosario&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Dec 2014 03:57:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Disable-automatic-external-object-creation-by-linker/m-p/382002#M11405</guid>
      <dc:creator>rvumbaca</dc:creator>
      <dc:date>2014-12-01T03:57:47Z</dc:date>
    </item>
    <item>
      <title>Re: Disable automatic external object creation by linker</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Disable-automatic-external-object-creation-by-linker/m-p/382003#M11406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Rosario,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there are two methods to disable warnings:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;(1).&amp;nbsp; add option&lt;SAMP class="codeph"&gt;-WmsgSd&amp;lt;number&amp;gt;&amp;nbsp; to Linker setting.&lt;/SAMP&gt;&lt;SAMP class="codeph"&gt;&lt;/SAMP&gt;&lt;SAMP class="codeph"&gt;&lt;SAMP class="codeph"&gt;&amp;lt;number&amp;gt;&lt;/SAMP&gt;&lt;/SAMP&gt;&lt;SAMP class="codeph"&gt;: Message number to be &lt;SPAN class="resultofText"&gt;&lt;SPAN class="resultofText"&gt;disable&lt;/SPAN&gt;d, e.g., 1801 &lt;/SPAN&gt;&lt;/SAMP&gt;&lt;/P&gt;&lt;P class="section"&gt;&lt;A name="ADSMCURS08compiler22625__wp972696" shape="rect"&gt;&lt;/A&gt;&lt;STRONG&gt;Example&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;SAMP class="codeph"&gt;-WmsgSd1823&lt;/SAMP&gt;&lt;SAMP class="codeph"&gt;&lt;/SAMP&gt;&lt;SAMP class="codeph"&gt;&lt;/SAMP&gt;&lt;SAMP class="codeph"&gt;&lt;/SAMP&gt;&lt;SAMP class="codeph"&gt;&lt;/SAMP&gt;&lt;SAMP class="codeph"&gt;&lt;/SAMP&gt;&lt;SAMP class="codeph"&gt;&lt;/SAMP&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SAMP class="codeph" style="padding-left: 30px;"&gt;(2). use &lt;A name="ADSMCUHCS08compiler27826__wp968692" shape="rect"&gt;&lt;/A&gt;&lt;SPAN class="resultofText"&gt;#&lt;SPAN class="resultofText"&gt;pragma&lt;/SPAN&gt; &lt;SPAN class="resultofText"&gt;&lt;SPAN class="resultofText"&gt;OPTION&lt;/SPAN&gt; ADD "-WmsgSd1823"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SAMP&gt;&lt;SAMP class="codeph"&gt;&lt;SPAN class="resultofText"&gt;&lt;SPAN class="resultofText"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SAMP&gt;&lt;SAMP class="codeph"&gt;&lt;SPAN class="resultofText"&gt;&lt;SPAN class="resultofText"&gt;&amp;nbsp;&amp;nbsp; in C code. for more information about #pragma OPTION&amp;nbsp; usage, please see CW help manual.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SAMP&gt;&lt;SAMP class="codeph"&gt;&lt;SPAN class="resultofText"&gt;&lt;SPAN class="resultofText"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SAMP&gt;&lt;SAMP class="codeph"&gt;&lt;SPAN class="resultofText"&gt;&lt;SPAN class="resultofText"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SAMP&gt;&lt;SAMP class="codeph"&gt;&lt;SPAN class="resultofText"&gt;&lt;SPAN class="resultofText"&gt;Hope this helps!&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SAMP&gt;&lt;SAMP class="codeph"&gt;&lt;SPAN class="resultofText"&gt;&lt;SPAN class="resultofText"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SAMP&gt;&lt;SAMP class="codeph"&gt;&lt;SPAN class="resultofText"&gt;&lt;SPAN class="resultofText"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SAMP&gt;&lt;SAMP class="codeph"&gt;&lt;SPAN class="resultofText"&gt;&lt;SPAN class="resultofText"&gt;Best Regards,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SAMP&gt;&lt;SAMP class="codeph"&gt;&lt;SPAN class="resultofText"&gt;&lt;SPAN class="resultofText"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SAMP&gt;&lt;SAMP class="codeph"&gt;&lt;SPAN class="resultofText"&gt;&lt;SPAN class="resultofText"&gt;Zhang Jun&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SAMP&gt;&lt;SAMP class="codeph"&gt;&lt;SPAN class="resultofText"&gt;&lt;SPAN class="resultofText"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SAMP&gt;&lt;SAMP class="codeph"&gt;&lt;SPAN class="resultofText"&gt;&lt;SPAN class="resultofText"&gt;=========================================&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SAMP&gt;&lt;/P&gt;&lt;P&gt;&lt;SAMP class="codeph"&gt;&lt;SPAN class="resultofText"&gt;this answer is for you. if it helps, please click on "Correct Answer" button. Thanks!&lt;/SPAN&gt;&lt;/SAMP&gt;&lt;SAMP class="codeph"&gt;&lt;SPAN class="resultofText"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SAMP&gt;&lt;SAMP class="codeph"&gt;&lt;SPAN class="resultofText"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SAMP&gt;&lt;SAMP class="codeph"&gt;&lt;SPAN class="resultofText"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SAMP&gt;&lt;SAMP class="codeph"&gt;&lt;/SAMP&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Dec 2014 08:36:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Disable-automatic-external-object-creation-by-linker/m-p/382003#M11406</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2014-12-01T08:36:37Z</dc:date>
    </item>
    <item>
      <title>Re: Disable automatic external object creation by linker</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Disable-automatic-external-object-creation-by-linker/m-p/382004#M11407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jennie,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That pragma cannot be used to supress messages, to do that you use #pragma MESSAGE DISABLE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I *Do Not* want to hide the message, I want to *Stop Automatic Object Creation*. I have looked through the manuals and it seems that this is not possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rosario&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Dec 2014 23:40:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Disable-automatic-external-object-creation-by-linker/m-p/382004#M11407</guid>
      <dc:creator>rvumbaca</dc:creator>
      <dc:date>2014-12-01T23:40:49Z</dc:date>
    </item>
    <item>
      <title>Re: Disable automatic external object creation by linker</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Disable-automatic-external-object-creation-by-linker/m-p/382005#M11408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rosario,&lt;/P&gt;&lt;P&gt;you can map that warning message to an error with the following linker option:&lt;/P&gt;&lt;P&gt;-WmsgSe1823&lt;/P&gt;&lt;P&gt;That way it does not create such an automatic object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hipe this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Dec 2014 07:42:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Disable-automatic-external-object-creation-by-linker/m-p/382005#M11408</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2014-12-02T07:42:31Z</dc:date>
    </item>
    <item>
      <title>Re: Disable automatic external object creation by linker</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Disable-automatic-external-object-creation-by-linker/m-p/382006#M11409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Erich,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks! That solved the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Rosario&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Dec 2014 00:54:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Disable-automatic-external-object-creation-by-linker/m-p/382006#M11409</guid>
      <dc:creator>rvumbaca</dc:creator>
      <dc:date>2014-12-03T00:54:52Z</dc:date>
    </item>
  </channel>
</rss>

