<?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>MQX Software Solutions中的主题 Re: linker error using wchar.h functions MQX 4.1</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/linker-error-using-wchar-h-functions-MQX-4-1/m-p/421828#M14029</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Brett, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are working in your issue,&amp;nbsp; we will be back with an answer asap. &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;Sol&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Sep 2015 19:56:37 GMT</pubDate>
    <dc:creator>soledad</dc:creator>
    <dc:date>2015-09-10T19:56:37Z</dc:date>
    <item>
      <title>linker error using wchar.h functions MQX 4.1</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/linker-error-using-wchar-h-functions-MQX-4-1/m-p/421824#M14025</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;I need to use the &lt;SPAN style="font-family: 'andale mono', times;"&gt;wchar_t&lt;/SPAN&gt; data type for a C project &lt;STRONG&gt;(the project is for a K70FN1M0 on a custom PCB, running MQX 4.1 and developing in CW 10.5),&lt;/STRONG&gt; but am unable to access the &lt;SPAN style="font-family: 'andale mono', times;"&gt;wchar/wstring&lt;/SPAN&gt; library functions such as &lt;SPAN style="font-family: 'andale mono', times;"&gt;wprintf(), wmemcpy(), wcsncpy()&lt;/SPAN&gt;, and others.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have already made sure to &lt;SPAN style="font-family: 'andale mono', times;"&gt;#include &amp;lt;wchar.h&amp;gt; and &amp;lt;wstring.h&amp;gt;&lt;/SPAN&gt;, and also selected the "Enable wchar_t support" option for ARM compiler settings in the project properties menu. I am able to use the &lt;SPAN style="font-family: 'andale mono', times;"&gt;wchar_t&lt;/SPAN&gt; data type without any build errors, however I get&amp;nbsp; "Link Failed" and "wprintf() undefined" errors when I try to use any &lt;SPAN style="font-family: 'andale mono', times;"&gt;wchar&lt;/SPAN&gt; functions. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help, thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Brett&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Sep 2015 23:53:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/linker-error-using-wchar-h-functions-MQX-4-1/m-p/421824#M14025</guid>
      <dc:creator>brettnicholas</dc:creator>
      <dc:date>2015-09-02T23:53:59Z</dc:date>
    </item>
    <item>
      <title>Re: linker error using wchar.h functions MQX 4.1</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/linker-error-using-wchar-h-functions-MQX-4-1/m-p/421825#M14026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Brett,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check the below thread and let me know if this helps!!&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/304194"&gt;wchar.h and MQX IO incompatibility&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Sol &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Sep 2015 16:36:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/linker-error-using-wchar-h-functions-MQX-4-1/m-p/421825#M14026</guid>
      <dc:creator>soledad</dc:creator>
      <dc:date>2015-09-03T16:36:09Z</dc:date>
    </item>
    <item>
      <title>Re: linker error using wchar.h functions MQX 4.1</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/linker-error-using-wchar-h-functions-MQX-4-1/m-p/421826#M14027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Soledad,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have already read that thread, and it doesn't help. It never specifies where the &lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;__ARM_WCHAR_NO_IO&lt;/SPAN&gt; macro needs to be set. I could not find it in user_config.h&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Sep 2015 17:04:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/linker-error-using-wchar-h-functions-MQX-4-1/m-p/421826#M14027</guid>
      <dc:creator>brettnicholas</dc:creator>
      <dc:date>2015-09-03T17:04:08Z</dc:date>
    </item>
    <item>
      <title>Re: linker error using wchar.h functions MQX 4.1</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/linker-error-using-wchar-h-functions-MQX-4-1/m-p/421827#M14028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Soledad,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have any idea how I can build the EWL wchar_t libraries? I really need to get this done....I filed a support service request a week ago, but have not heard back. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2015 15:58:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/linker-error-using-wchar-h-functions-MQX-4-1/m-p/421827#M14028</guid>
      <dc:creator>brettnicholas</dc:creator>
      <dc:date>2015-09-10T15:58:35Z</dc:date>
    </item>
    <item>
      <title>Re: linker error using wchar.h functions MQX 4.1</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/linker-error-using-wchar-h-functions-MQX-4-1/m-p/421828#M14029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Brett, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are working in your issue,&amp;nbsp; we will be back with an answer asap. &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;Sol&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2015 19:56:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/linker-error-using-wchar-h-functions-MQX-4-1/m-p/421828#M14029</guid>
      <dc:creator>soledad</dc:creator>
      <dc:date>2015-09-10T19:56:37Z</dc:date>
    </item>
    <item>
      <title>Re: linker error using wchar.h functions MQX 4.1</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/linker-error-using-wchar-h-functions-MQX-4-1/m-p/421829#M14030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Brett, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is an abstract from service request answer. &lt;/P&gt;&lt;P&gt;In order to add wchar support it is necessary to set the corresponding macros and they must be rebuilt. I tried setting the macros below but I got errors. Then I undo changes and rebuilt libraries as normal and tried method 2 and it worked.&lt;/P&gt;&lt;P&gt;_EWL_WIDE_CHAR&lt;/P&gt;&lt;P&gt;_EWL_WFILEIO_AVAILABLE&lt;/P&gt;&lt;P&gt;_EWL_OS_DISK_FILE_SUPPORT&lt;/P&gt;&lt;P&gt; I took fwprintf.c from its original location (C:\Freescale\CW MCU v10.6\MCU\ARM_GCC_Support\ewl\EWL_C\src\wchar) and created a copy in my project. Then in project properties (menu Project &amp;gt; Properties &amp;gt; C/C++ Build &amp;gt; Settings &amp;gt; Compiler &amp;gt; Preprocessor) added the macros below.&lt;/P&gt;&lt;P&gt;_EWL_WIDE_CHAR=1&lt;/P&gt;&lt;P&gt;_EWL_OS_DISK_FILE_SUPPORT=1&lt;/P&gt;&lt;P&gt;As there is no prototype of the function I recommend to write a prototype at the top of the file to avoid compiler confusion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Sol &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Sep 2015 23:34:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/linker-error-using-wchar-h-functions-MQX-4-1/m-p/421829#M14030</guid>
      <dc:creator>soledad</dc:creator>
      <dc:date>2015-09-18T23:34:44Z</dc:date>
    </item>
  </channel>
</rss>

