<?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 C++  bug:  &amp;lt;fstream&amp;gt; not including correctly in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/C-bug-lt-fstream-gt-not-including-correctly/m-p/222636#M4110</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm getting a very odd error in C++, CW 10.4, Kinetis project.&amp;nbsp; I can't compile an &lt;STRONG&gt;std::ifstream &lt;/STRONG&gt;variable!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Taking the Freedom_CPP project from &lt;A href="https://github.com/ErichStyger/mcuoneclipse" title="https://github.com/ErichStyger/mcuoneclipse"&gt;ErichStyger/mcuoneclipse · GitHub&lt;/A&gt;&lt;/P&gt;&lt;P&gt;And modifying it, I add an ifstream variable to the class, and &lt;STRONG&gt;#include &amp;lt;fstream&amp;gt;&lt;/STRONG&gt; to the top of the file and get this error.&lt;/P&gt;&lt;P&gt;Searching all day for an answer and can't figure out why this doesn't work.&lt;/P&gt;&lt;P&gt;Help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's the modified &lt;STRONG&gt;application.cpp&lt;/STRONG&gt; source file, everything else the same:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;/*&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt; * main implementation: use this 'C++' sample to create your own application&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt; *&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt; */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;/*#include &lt;SPAN style="text-decoration: underline;"&gt;&amp;lt;stdio.h&amp;gt;&lt;/SPAN&gt;*/&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;/* &lt;SPAN style="text-decoration: underline;"&gt;uncomment&lt;/SPAN&gt; to enable 'puts' below */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&lt;SPAN style="color: #921f67;"&gt;&lt;STRONG&gt;#include&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;"application.h"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&lt;SPAN style="color: #921f67;"&gt;&lt;STRONG&gt;#include&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&amp;lt;fstream&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&lt;SPAN style="color: #921f67;"&gt;&lt;STRONG&gt;class&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;counterclass&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&lt;STRONG&gt;private&lt;/STRONG&gt;&lt;SPAN style="color: #000000;"&gt;:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #921f67;"&gt;&lt;STRONG&gt;int&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;m_counter&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&lt;STRONG&gt;public&lt;/STRONG&gt;&lt;SPAN style="color: #000000;"&gt;:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&amp;nbsp; &lt;STRONG&gt;counterclass&lt;/STRONG&gt;(&lt;SPAN style="color: #921f67;"&gt;&lt;STRONG&gt;void&lt;/STRONG&gt;&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&amp;nbsp; {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp; &lt;/SPAN&gt;m_counter&lt;SPAN style="color: #000000;"&gt; = 0;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&amp;nbsp; };&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&amp;nbsp; &lt;SPAN style="color: #921f67;"&gt;&lt;STRONG&gt;void&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;STRONG&gt;increment&lt;/STRONG&gt;(&lt;SPAN style="color: #921f67;"&gt;&lt;STRONG&gt;void&lt;/STRONG&gt;&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&amp;nbsp; {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp; &lt;/SPAN&gt;m_counter&lt;SPAN style="color: #000000;"&gt;++;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&amp;nbsp; };&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&amp;nbsp; std::&lt;SPAN style="color: #006042;"&gt;ifstream&lt;/SPAN&gt; &lt;SPAN style="color: #0a30c8;"&gt;file_&lt;/SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;};&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&lt;SPAN style="color: #921f67;"&gt;&lt;STRONG&gt;void&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;STRONG&gt;APP_Run&lt;/STRONG&gt;(&lt;SPAN style="color: #921f67;"&gt;&lt;STRONG&gt;void&lt;/STRONG&gt;&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&amp;nbsp; &lt;SPAN style="color: #006042;"&gt;counterclass&lt;/SPAN&gt; myccounter;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp; &lt;/SPAN&gt;/* Enabling 'puts' below will use the UART/SCI of your target.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&amp;nbsp; * Make sure you correctly set it up or how to use the Debug Console instead.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&amp;nbsp; * See the targeting manual for details.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&amp;nbsp; */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp; &lt;/SPAN&gt;/*puts("Hello (&lt;SPAN style="text-decoration: underline;"&gt;Kinetis&lt;/SPAN&gt;) World in 'C++' from MKL25Z128 derivative!");*/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&amp;nbsp; &lt;SPAN style="color: #921f67;"&gt;&lt;STRONG&gt;for&lt;/STRONG&gt;&lt;/SPAN&gt;(;;) {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&amp;nbsp; myccounter.increment();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&amp;nbsp; }&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the console output:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;SPAN style="font-size: 8pt;"&gt;'Building file: ../Sources/application.cpp'&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;SPAN style="font-size: 8pt;"&gt;'Executing target #3 ../Sources/application.cpp'&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;SPAN style="font-size: 8pt;"&gt;'Invoking: ARM Ltd Windows GCC C++ Compiler'&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;SPAN style="font-size: 8pt;"&gt;"C:/Freescale/CW MCU v10.4/Cross_Tools/arm-none-eabi-gcc-4_7_3/bin/arm-none-eabi-g++" "../Sources/application.cpp" @"Sources/application.args" -Wa,-adhlns="Sources/application.o.lst" -MMD -MP -MF"Sources/application.d" -o"Sources/application.o"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;SPAN style="font-size: 8pt;"&gt;../Sources/application.cpp:25:16: error: field 'file_' has incomplete type&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;SPAN style="font-size: 8pt;"&gt;mingw32-make: *** [Sources/application.o] Error 1&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Jul 2013 06:11:36 GMT</pubDate>
    <dc:creator>bowerymarc</dc:creator>
    <dc:date>2013-07-25T06:11:36Z</dc:date>
    <item>
      <title>C++  bug:  &lt;fstream&gt; not including correctly</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/C-bug-lt-fstream-gt-not-including-correctly/m-p/222636#M4110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm getting a very odd error in C++, CW 10.4, Kinetis project.&amp;nbsp; I can't compile an &lt;STRONG&gt;std::ifstream &lt;/STRONG&gt;variable!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Taking the Freedom_CPP project from &lt;A href="https://github.com/ErichStyger/mcuoneclipse" title="https://github.com/ErichStyger/mcuoneclipse"&gt;ErichStyger/mcuoneclipse · GitHub&lt;/A&gt;&lt;/P&gt;&lt;P&gt;And modifying it, I add an ifstream variable to the class, and &lt;STRONG&gt;#include &amp;lt;fstream&amp;gt;&lt;/STRONG&gt; to the top of the file and get this error.&lt;/P&gt;&lt;P&gt;Searching all day for an answer and can't figure out why this doesn't work.&lt;/P&gt;&lt;P&gt;Help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's the modified &lt;STRONG&gt;application.cpp&lt;/STRONG&gt; source file, everything else the same:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;/*&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt; * main implementation: use this 'C++' sample to create your own application&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt; *&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt; */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;/*#include &lt;SPAN style="text-decoration: underline;"&gt;&amp;lt;stdio.h&amp;gt;&lt;/SPAN&gt;*/&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;/* &lt;SPAN style="text-decoration: underline;"&gt;uncomment&lt;/SPAN&gt; to enable 'puts' below */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&lt;SPAN style="color: #921f67;"&gt;&lt;STRONG&gt;#include&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;"application.h"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&lt;SPAN style="color: #921f67;"&gt;&lt;STRONG&gt;#include&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&amp;lt;fstream&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&lt;SPAN style="color: #921f67;"&gt;&lt;STRONG&gt;class&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;counterclass&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&lt;STRONG&gt;private&lt;/STRONG&gt;&lt;SPAN style="color: #000000;"&gt;:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #921f67;"&gt;&lt;STRONG&gt;int&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;m_counter&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&lt;STRONG&gt;public&lt;/STRONG&gt;&lt;SPAN style="color: #000000;"&gt;:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&amp;nbsp; &lt;STRONG&gt;counterclass&lt;/STRONG&gt;(&lt;SPAN style="color: #921f67;"&gt;&lt;STRONG&gt;void&lt;/STRONG&gt;&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&amp;nbsp; {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp; &lt;/SPAN&gt;m_counter&lt;SPAN style="color: #000000;"&gt; = 0;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&amp;nbsp; };&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&amp;nbsp; &lt;SPAN style="color: #921f67;"&gt;&lt;STRONG&gt;void&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;STRONG&gt;increment&lt;/STRONG&gt;(&lt;SPAN style="color: #921f67;"&gt;&lt;STRONG&gt;void&lt;/STRONG&gt;&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&amp;nbsp; {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp; &lt;/SPAN&gt;m_counter&lt;SPAN style="color: #000000;"&gt;++;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&amp;nbsp; };&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&amp;nbsp; std::&lt;SPAN style="color: #006042;"&gt;ifstream&lt;/SPAN&gt; &lt;SPAN style="color: #0a30c8;"&gt;file_&lt;/SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;};&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&lt;SPAN style="color: #921f67;"&gt;&lt;STRONG&gt;void&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;STRONG&gt;APP_Run&lt;/STRONG&gt;(&lt;SPAN style="color: #921f67;"&gt;&lt;STRONG&gt;void&lt;/STRONG&gt;&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&amp;nbsp; &lt;SPAN style="color: #006042;"&gt;counterclass&lt;/SPAN&gt; myccounter;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp; &lt;/SPAN&gt;/* Enabling 'puts' below will use the UART/SCI of your target.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&amp;nbsp; * Make sure you correctly set it up or how to use the Debug Console instead.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&amp;nbsp; * See the targeting manual for details.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&amp;nbsp; */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp; &lt;/SPAN&gt;/*puts("Hello (&lt;SPAN style="text-decoration: underline;"&gt;Kinetis&lt;/SPAN&gt;) World in 'C++' from MKL25Z128 derivative!");*/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&amp;nbsp; &lt;SPAN style="color: #921f67;"&gt;&lt;STRONG&gt;for&lt;/STRONG&gt;&lt;/SPAN&gt;(;;) {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&amp;nbsp; myccounter.increment();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&amp;nbsp; }&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the console output:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;SPAN style="font-size: 8pt;"&gt;'Building file: ../Sources/application.cpp'&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;SPAN style="font-size: 8pt;"&gt;'Executing target #3 ../Sources/application.cpp'&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;SPAN style="font-size: 8pt;"&gt;'Invoking: ARM Ltd Windows GCC C++ Compiler'&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;SPAN style="font-size: 8pt;"&gt;"C:/Freescale/CW MCU v10.4/Cross_Tools/arm-none-eabi-gcc-4_7_3/bin/arm-none-eabi-g++" "../Sources/application.cpp" @"Sources/application.args" -Wa,-adhlns="Sources/application.o.lst" -MMD -MP -MF"Sources/application.d" -o"Sources/application.o"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;SPAN style="font-size: 8pt;"&gt;../Sources/application.cpp:25:16: error: field 'file_' has incomplete type&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;SPAN style="font-size: 8pt;"&gt;mingw32-make: *** [Sources/application.o] Error 1&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jul 2013 06:11:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/C-bug-lt-fstream-gt-not-including-correctly/m-p/222636#M4110</guid>
      <dc:creator>bowerymarc</dc:creator>
      <dc:date>2013-07-25T06:11:36Z</dc:date>
    </item>
    <item>
      <title>Re: C++  bug:  &lt;fstream&gt; not including correctly</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/C-bug-lt-fstream-gt-not-including-correctly/m-p/222637#M4111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've reduced this to a bug.&amp;nbsp; Using a new baremetal C++ project with the following settings:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Helvetica;"&gt;K20F120X512&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Helvetica;"&gt;c++&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Helvetica;"&gt;no i/o&amp;nbsp; OR uart i/o&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Helvetica;"&gt;GCC&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Helvetica;"&gt;FLASH target&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Helvetica;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Helvetica;"&gt;I still get the same error as above:&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;C:\Freescale\CW MCU v10.4\gnu\bin\mingw32-make all&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;'Building file: ../Sources/main.cpp'&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;'Executing target #1 ../Sources/main.cpp'&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;'Invoking: ARM Ltd Windows GCC C++ Compiler'&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;"C:/Freescale/CW MCU v10.4/Cross_Tools/arm-none-eabi-gcc-4_7_3/bin/arm-none-eabi-g++" "../Sources/main.cpp" @"Sources/main.args" -MMD -MP -MF"Sources/main.d" -o"Sources/main.o"&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;../Sources/main.cpp:25:16: error: field 'file_' has incomplete type&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;mingw32-make: *** [Sources/main.o] Error 1&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Helvetica;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Helvetica;"&gt;And looking at the preprocessor output, the same issue is true... std::fstream and std::basic_fstream have forward declarations but no actual class definition. &lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;SPAN style="color: #921f67;"&gt;&lt;STRONG&gt;template&lt;/STRONG&gt;&lt;/SPAN&gt; &amp;lt;&lt;SPAN style="color: #921f67;"&gt;&lt;STRONG&gt;class&lt;/STRONG&gt;&lt;/SPAN&gt; charT, &lt;SPAN style="color: #921f67;"&gt;&lt;STRONG&gt;class&lt;/STRONG&gt;&lt;/SPAN&gt; traits = char_traits&amp;lt;charT&amp;gt; &amp;gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;SPAN style="color: #921f67;"&gt;&lt;STRONG&gt;class&lt;/STRONG&gt;&lt;/SPAN&gt; basic_fstream;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;SPAN style="color: #921f67;"&gt;&lt;STRONG&gt;typedef&lt;/STRONG&gt;&lt;/SPAN&gt; basic_fstream&amp;lt;&lt;SPAN style="color: #921f67;"&gt;&lt;STRONG&gt;char&lt;/STRONG&gt;&lt;/SPAN&gt;, char_traits&amp;lt;&lt;SPAN style="color: #921f67;"&gt;&lt;STRONG&gt;char&lt;/STRONG&gt;&lt;/SPAN&gt;&amp;gt; &amp;gt; fstream;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Helvetica;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Helvetica;"&gt;Freescale - there's something wrong with the way &lt;STRONG&gt;#include &amp;lt;fstream&amp;gt;&lt;/STRONG&gt; is functioning... this should work!&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Helvetica;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Helvetica;"&gt;Project is attached.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jul 2013 16:33:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/C-bug-lt-fstream-gt-not-including-correctly/m-p/222637#M4111</guid>
      <dc:creator>bowerymarc</dc:creator>
      <dc:date>2013-07-29T16:33:31Z</dc:date>
    </item>
    <item>
      <title>Re: C++  bug:  &lt;fstream&gt; not including correctly</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/C-bug-lt-fstream-gt-not-including-correctly/m-p/222638#M4112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;just tried the same project in CW 10.5, get the same error. fixes??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jan 2014 17:24:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/C-bug-lt-fstream-gt-not-including-correctly/m-p/222638#M4112</guid>
      <dc:creator>bowerymarc</dc:creator>
      <dc:date>2014-01-03T17:24:03Z</dc:date>
    </item>
    <item>
      <title>Re: Re: C++  bug:  &lt;fstream&gt; not including correctly</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/C-bug-lt-fstream-gt-not-including-correctly/m-p/222639#M4113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;another clue.&amp;nbsp; Based on the code posted above:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; std::ifstream *file_; //works&lt;/P&gt;&lt;P&gt;&amp;nbsp; std::ifstream file1_(); //works&lt;/P&gt;&lt;P&gt;&amp;nbsp; std::ifstream file1_; //doesnt work ("field file1_ has incomplete type")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so somehow I can't declare a variable of the class only instantiate?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jan 2014 20:54:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/C-bug-lt-fstream-gt-not-including-correctly/m-p/222639#M4113</guid>
      <dc:creator>bowerymarc</dc:creator>
      <dc:date>2014-01-03T20:54:22Z</dc:date>
    </item>
    <item>
      <title>Re: Re: C++  bug:  &lt;fstream&gt; not including correctly</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/C-bug-lt-fstream-gt-not-including-correctly/m-p/222640#M4114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK I think I figured this out. The issue was code being #ifdef'd out due to global settings in various CW setup files.&amp;nbsp; By turning on file support I got it to compile.&amp;nbsp; Here's the source code, the comments at top show what I changed to get it to work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;/*&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt; * main implementation: use this 'C++' sample to create your own application&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt; *&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt; */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;/*&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; notes: in file ewlconfig_ARM changed:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;// #define _EWL_NO_FILE_IO //commented&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; #define _EWL_CFILE_STREAM //uncommented&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; in file ansi_prefix.ARM.h changed:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; #define _EWL_NO_WCHART_C_SUPPORT //added&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt; */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;#include &amp;lt;niostream&amp;gt; // iostream has wide char support i don't care about&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;#include &amp;lt;fstream&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;#include &amp;lt;cstdlib&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;#include &amp;lt;cstdio&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;class counterclass&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;private:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; int m_counter;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;public:&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; counterclass(void) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; m_counter = 0;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; };&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; void increment(void) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; m_counter++;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; };&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; std::ifstream *file_; //works&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; std::ifstream file1_(); //works&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; std::ifstream file2_; //doesnt work ("field file1_ has incomplete type")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;};&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;int main()&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; counterclass myccounter;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; for(;;) {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; myccounter.increment();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; }&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; return 0;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;extern "C"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;#include &amp;lt;sys/UART.h&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;/****************************************************************************/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;/*&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt; * Implementation for CodeWarror MSL interface to serial device (UART.h). &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt; * Needed for printf, etc...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt; * Only InitializeUART, ReadUARTN, and WriteUARTN are implemented.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt; *&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt; */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;UARTError InitializeUART(UARTBaudRate baudRate)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; //todo: add functionality if used&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; return kUARTNoError;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;/****************************************************************************/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;/*&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; ReadUARTN&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; Read N bytes from the UART.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; bytes pointer to result buffer&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; limit size of buffer and # of bytes to read&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;*/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;/****************************************************************************/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;UARTError ReadUARTN(void* bytes, unsigned long limit)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; //todo: add functionality if used&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; return kUARTNoError;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;/****************************************************************************/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;UARTError WriteUARTN(const void* bytes, unsigned long length)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; //todo: add functionality if used&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; return kUARTNoError;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;} // extern C&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Jan 2014 01:58:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/C-bug-lt-fstream-gt-not-including-correctly/m-p/222640#M4114</guid>
      <dc:creator>bowerymarc</dc:creator>
      <dc:date>2014-01-04T01:58:51Z</dc:date>
    </item>
    <item>
      <title>Re: C++  bug:  &lt;fstream&gt; not including correctly</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/C-bug-lt-fstream-gt-not-including-correctly/m-p/1495728#M63650</link>
      <description>&lt;P&gt;Does C++ file read works on NXP boards/&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;C file I/O fopen is working with Macros&lt;/P&gt;&lt;P&gt;e.g&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;std::ifstream *infile = new std::ifstream();&lt;BR /&gt;infile-&amp;gt;open ("/language/language_en-GB.xml", std::ifstream::in);&lt;/P&gt;&lt;P&gt;bool is_good = infile-&amp;gt;good();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;is_good is false.&lt;/P&gt;&lt;P&gt;EWL_FILENAME_MAX&lt;BR /&gt;EWL_OS_DISK_FILE_SUPPORT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do we need to define different macros for C++ file stream&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;my macros are&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;__NEWLIB__&lt;BR /&gt;CPU_MIMXRT1052DVL6B&lt;BR /&gt;CPU_MIMXRT1052DVL6B_cm7&lt;BR /&gt;SDK_DEBUGCONSOLE=1&lt;BR /&gt;XIP_EXTERNAL_FLASH=1&lt;BR /&gt;XIP_BOOT_HEADER_ENABLE=1&lt;BR /&gt;XIP_BOOT_HEADER_DCD_ENABLE=1&lt;BR /&gt;SKIP_SYSCLK_INIT&lt;BR /&gt;FSL_SDK_ENABLE_DRIVER_CACHE_CONTROL=1&lt;BR /&gt;SD_ENABLED&lt;BR /&gt;SERIAL_PORT_TYPE_UART=1&lt;BR /&gt;SDK_OS_FREE_RTOS&lt;BR /&gt;MCUXPRESSO_SDK&lt;BR /&gt;CR_INTEGER_PRINTF&lt;BR /&gt;PRINTF_FLOAT_ENABLE=0&lt;BR /&gt;__MCUXPRESSO&lt;BR /&gt;__USE_CMSIS&lt;BR /&gt;DEBUG&lt;BR /&gt;EWL_FILENAME_MAX&lt;BR /&gt;EWL_OS_DISK_FILE_SUPPORT&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.nxp.com/docs/en/reference-manual/CWEWLCPPREF.pdf" target="_blank" rel="noopener"&gt;https://www.nxp.com/docs/en/reference-manual/CWEWLCPPREF.pdf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2022 16:37:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/C-bug-lt-fstream-gt-not-including-correctly/m-p/1495728#M63650</guid>
      <dc:creator>snahmad</dc:creator>
      <dc:date>2022-07-26T16:37:14Z</dc:date>
    </item>
  </channel>
</rss>

