<?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: undefined reference to `__ctype' in MCUXpresso IDE</title>
    <link>https://community.nxp.com/t5/MCUXpresso-IDE/undefined-reference-to-ctype/m-p/768524#M2271</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi, I create a new connectivity project&amp;nbsp;and select newlib in wizard, it is ok now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if the project was created already and selected&amp;nbsp;Redlib, I can't just switch to newlib. If I click manager link script, it will disable use my .ld&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want use both my .ld and newlib for existing project.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Mar 2018 11:22:33 GMT</pubDate>
    <dc:creator>neoxiong</dc:creator>
    <dc:date>2018-03-19T11:22:33Z</dc:date>
    <item>
      <title>undefined reference to `__ctype'</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/undefined-reference-to-ctype/m-p/768521#M2268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI, MCUXpresso Expert&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I include &amp;lt;ctype.h&amp;gt; and call isdigit('A') function, during link stage, it report 'undefined reference to `__ctype'.&lt;/P&gt;&lt;P&gt;This only happens when I use connectivity example project, when uses driver example project, there is no problem.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had tried to change several library format, it still has the same issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Environment: MCUxpresso 10.1.1&lt;/P&gt;&lt;P&gt;SDK: QN908x GA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Mar 2018 11:15:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/undefined-reference-to-ctype/m-p/768521#M2268</guid>
      <dc:creator>neoxiong</dc:creator>
      <dc:date>2018-03-17T11:15:28Z</dc:date>
    </item>
    <item>
      <title>Re: undefined reference to `__ctype'</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/undefined-reference-to-ctype/m-p/768522#M2269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe that this link issue is caused&amp;nbsp;because the "Connectivity"&amp;nbsp;projects&amp;nbsp;having being configured&amp;nbsp;so they use their own linker scripts and library support rather than the "normal" IDE functionality.&amp;nbsp;I suspect that your problem is being triggered by the project effectively using the C library header files from Redlib, but then linking against other C library archives. &amp;nbsp;And Redlib implements ctype differently.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the value in:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Project -&amp;gt; Properties -&amp;gt; C/C++ Build -&amp;gt; Settings -&amp;gt; Tool Settings -&amp;gt; MCU C Compiler -&amp;gt; Library headers&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and if it says "Redlib (Auto)" try changing this to "Newlib (Auto)" instead, then rebuild.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;MCUXpresso IDE Support&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Mar 2018 09:25:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/undefined-reference-to-ctype/m-p/768522#M2269</guid>
      <dc:creator>lpcxpresso_supp</dc:creator>
      <dc:date>2018-03-19T09:25:36Z</dc:date>
    </item>
    <item>
      <title>Re: undefined reference to `__ctype'</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/undefined-reference-to-ctype/m-p/768523#M2270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Expert&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you mean the 'Library headers' setting in 'Miscellaneous' ? It is strange that I change from 'Redlib (Auto)' to 'Newlib (Auto)' and click apply &amp;amp; OK, next time I open the project setting, it is still 'Redlib (Auto)'. I think we need change library instead of headers?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In other SDK driver example project, it is Redlib,&amp;nbsp;and I have no problem.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another point is I noticed driver examples uses 'Managed Link script' instead of .ld file, while connectivity project uses .ld.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Mar 2018 11:06:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/undefined-reference-to-ctype/m-p/768523#M2270</guid>
      <dc:creator>neoxiong</dc:creator>
      <dc:date>2018-03-19T11:06:53Z</dc:date>
    </item>
    <item>
      <title>Re: undefined reference to `__ctype'</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/undefined-reference-to-ctype/m-p/768524#M2271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi, I create a new connectivity project&amp;nbsp;and select newlib in wizard, it is ok now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if the project was created already and selected&amp;nbsp;Redlib, I can't just switch to newlib. If I click manager link script, it will disable use my .ld&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want use both my .ld and newlib for existing project.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Mar 2018 11:22:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/undefined-reference-to-ctype/m-p/768524#M2271</guid>
      <dc:creator>neoxiong</dc:creator>
      <dc:date>2018-03-19T11:22:33Z</dc:date>
    </item>
    <item>
      <title>Re: undefined reference to `__ctype'</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/undefined-reference-to-ctype/m-p/768525#M2272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Neo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a workaround that you can do to have both QN908XC_connectivity.ld and newlib library selected for an existing connectivity project. Here is how:&lt;/P&gt;&lt;P&gt;1. Go to Project -&amp;gt; Properties -&amp;gt; C/C++ Build -&amp;gt; Settings -&amp;gt; Tool Settings -&amp;gt; MCU Linker -&amp;gt; Managed Linker Script&lt;/P&gt;&lt;P&gt;2. Copy the text from Linker script edit box, i.e "QN908XC_connectivity.ld"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/34766iB08968335E9FEBC6/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;3. Select Manage linker script check-box&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_4.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/35021i11871299E5393AAB/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_4.png" alt="pastedImage_4.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;4. Change library to Newlib&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/34942i09130C49A3825581/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;5. Uncheck Manage linker script and paste back the original QN908XC_connectivity.ld file&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_5.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/35063i5669B6445EABAA63/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_5.png" alt="pastedImage_5.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;6. Apply and close&lt;/P&gt;&lt;P&gt;7. Rebuild the project&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mihai DRAGNEA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Mar 2018 16:40:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/undefined-reference-to-ctype/m-p/768525#M2272</guid>
      <dc:creator>mihaidragnea</dc:creator>
      <dc:date>2018-03-19T16:40:22Z</dc:date>
    </item>
  </channel>
</rss>

