<?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: Problems with fstream( ) in Classic/Legacy CodeWarrior</title>
    <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Problems-with-fstream/m-p/192743#M4922</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use #include &amp;lt;fstream&amp;gt; and not the pre-ansi&amp;nbsp; #include &amp;lt;fstream.h&amp;gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;According to&lt;/P&gt;&lt;P&gt;&lt;A href="http://www2.roguewave.com/support/docs/leif/sourcepro/html/stdlibref/basic-fstream.html" rel="nofollow" target="_blank"&gt;http://www2.roguewave.com/support/docs/leif/sourcepro/html/stdlibref/basic-fstream.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The constructor you are trying to use is explicit, so you have to call it explicitely.&lt;/P&gt;&lt;P&gt;Without having it tried:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;BR /&gt;fstream inOut = fstream("text.txt");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Jun 2009 00:45:14 GMT</pubDate>
    <dc:creator>CompilerGuru</dc:creator>
    <dc:date>2009-06-23T00:45:14Z</dc:date>
    <item>
      <title>Problems with fstream( )</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Problems-with-fstream/m-p/192742#M4921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;These days I've started to check out a few&amp;nbsp;things about the C++ support&amp;nbsp;of the CodeWarrior (V. 5.7.1844). I created a small C++ Project and I tried to get the following to run:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#include &amp;lt;iostream&amp;gt;&lt;BR /&gt;#include &amp;lt;fstream.h&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;using namespace std;&lt;BR /&gt;&lt;BR /&gt;void readFile()&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; fstream inOut("test.txt", ios::in | ios:&lt;A href="http://freescale.i.lithium.com/i/smilies/16x16_smiley-surprised.gif"&gt;&lt;IMG alt=":smileysurprised:" class="emoticon emoticon-smileysurprised" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-surprised.gif" title="Smiley Surprised" /&gt;&lt;/A&gt;ut);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I always get the Compile Error message: "Error: too many initializers" &lt;A href="http://freescale.i.lithium.com/i/smilies/16x16_smiley-surprised.gif"&gt;&lt;IMG alt=":smileysurprised:" class="emoticon emoticon-smileysurprised" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-surprised.gif" title="Smiley Surprised" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I remove the openemode flags it normally should compile,too , because there is a default parameter in the constructor, but this:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;fstream inOut("text.txt");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;delivers the compile error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;"Error: implicit conversion from 'const char[9]' to 'std::basic_fstream&amp;lt;char, std::char_traits&amp;lt;char&amp;gt;&amp;gt;'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have checked all the target settings and the include file contents, but i cannot find a solution to solve the compile errors.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has anybody an idea ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in Advance&lt;/P&gt;&lt;P&gt;mama&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2009 22:56:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Problems-with-fstream/m-p/192742#M4921</guid>
      <dc:creator>mama</dc:creator>
      <dc:date>2009-06-22T22:56:17Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with fstream( )</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Problems-with-fstream/m-p/192743#M4922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use #include &amp;lt;fstream&amp;gt; and not the pre-ansi&amp;nbsp; #include &amp;lt;fstream.h&amp;gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;According to&lt;/P&gt;&lt;P&gt;&lt;A href="http://www2.roguewave.com/support/docs/leif/sourcepro/html/stdlibref/basic-fstream.html" rel="nofollow" target="_blank"&gt;http://www2.roguewave.com/support/docs/leif/sourcepro/html/stdlibref/basic-fstream.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The constructor you are trying to use is explicit, so you have to call it explicitely.&lt;/P&gt;&lt;P&gt;Without having it tried:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;BR /&gt;fstream inOut = fstream("text.txt");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2009 00:45:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Problems-with-fstream/m-p/192743#M4922</guid>
      <dc:creator>CompilerGuru</dc:creator>
      <dc:date>2009-06-23T00:45:14Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with fstream( )</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Problems-with-fstream/m-p/192744#M4923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Daniel,&lt;/P&gt;&lt;P&gt;thanks for your quick answer and sorry for my stupid typing error about the fstream.h extension. Yes of course, I have included it this way in my test programm: #include&amp;lt;fstream&amp;gt; (next time I better do&amp;nbsp;copy and paste), but it does not change the compile error message. Here I have another code snippet below where I tried to get it compilable, but I am not able to solve the problem.&amp;nbsp;You're suggestion about the constructor call delivers another compile error ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will be very thankful for advises.&lt;/P&gt;&lt;P&gt;Thanks Marc&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;// fstream is just forwarded to basic_fstream in file "iosfwd"&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;template &amp;lt;class charT, class traits = char_traits&amp;lt;charT&amp;gt; &amp;gt;&lt;BR /&gt;class basic_fstream;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;typedef basic_fstream&amp;lt;char, char_traits&amp;lt;char&amp;gt; &amp;gt;&amp;nbsp; fstream;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;// The called constructor basic_fstream in file "fstream"&lt;BR /&gt;&lt;STRONG&gt;explicit basic_fstream(const char* s,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ios_base:&lt;IMG alt=":smileysurprised:" class="emoticon emoticon-smileysurprised" id="smileysurprised" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-surprised.gif" title="Smiley Surprised" /&gt;penmode mode = ios_base::in | ios_base:&lt;IMG alt=":smileysurprised:" class="emoticon emoticon-smileysurprised" id="smileysurprised" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-surprised.gif" title="Smiley Surprised" /&gt;ut);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;---------------------------------------------------------------------------------------------&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#include &amp;lt;iostream&amp;gt;&lt;BR /&gt;#include &amp;lt;fstream&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#include "test.h"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;using namespace std;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;void readFile()&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; &lt;EM&gt;// Error&amp;nbsp;&amp;nbsp; : too many initializers&lt;BR /&gt;&amp;nbsp; //&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; test.cpp line 14&amp;nbsp;&amp;nbsp;&amp;nbsp; fstream inOut("test.txt", ios::in | ios:&lt;IMG alt=":smileysurprised:" class="emoticon emoticon-smileysurprised" id="smileysurprised" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-surprised.gif" title="Smiley Surprised" /&gt;ut);&lt;/EM&gt;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;fstream inOut("test.txt", ios::in | ios:&lt;IMG alt=":smileysurprised:" class="emoticon emoticon-smileysurprised" id="smileysurprised" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-surprised.gif" title="Smiley Surprised" /&gt;ut);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; // Error&amp;nbsp;&amp;nbsp; : illegal use of incomplete struct/union/class&lt;BR /&gt;&amp;nbsp; //&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'std::basic_fstream&amp;lt;char, std::char_traits&amp;lt;char&amp;gt;&amp;gt;'&lt;BR /&gt;&amp;nbsp; //&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; test.cpp line 18&amp;nbsp;&amp;nbsp;&amp;nbsp; fstream inOut2 = fstream("test.txt");&lt;/EM&gt;&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &lt;STRONG&gt;fstream inOut2 = fstream("test.txt");&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; // Error&amp;nbsp;&amp;nbsp; : illegal use of incomplete struct/union/class&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; //&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'std::basic_fstream&amp;lt;char, std::char_traits&amp;lt;char&amp;gt;&amp;gt;'&lt;BR /&gt;&amp;nbsp; //&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; test.cpp line 22&amp;nbsp;&amp;nbsp;&amp;nbsp; fstream inOut3 = fstream("test.txt", ios::in | ios:&lt;IMG alt=":smileysurprised:" class="emoticon emoticon-smileysurprised" id="smileysurprised" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-surprised.gif" title="Smiley Surprised" /&gt;ut);&lt;/EM&gt;&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &lt;STRONG&gt;fstream inOut3 = fstream("test.txt", ios::in | ios:&lt;IMG alt=":smileysurprised:" class="emoticon emoticon-smileysurprised" id="smileysurprised" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-surprised.gif" title="Smiley Surprised" /&gt;ut);&lt;/STRONG&gt;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;const char c[] = "text.txt";&lt;BR /&gt;&amp;nbsp;ios_base:&lt;IMG alt=":smileysurprised:" class="emoticon emoticon-smileysurprised" id="smileysurprised" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-surprised.gif" title="Smiley Surprised" /&gt;penmode mode = ios_base::in | ios_base:&lt;IMG alt=":smileysurprised:" class="emoticon emoticon-smileysurprised" id="smileysurprised" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-surprised.gif" title="Smiley Surprised" /&gt;ut;&lt;BR /&gt;&lt;/STRONG&gt;&lt;EM&gt;&amp;nbsp;// Error&amp;nbsp;&amp;nbsp; : template argument list expected&lt;BR /&gt;&amp;nbsp;//&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; test.cpp line 35&amp;nbsp;&amp;nbsp; explicit basic_fstream(const char* s,&amp;nbsp;&lt;BR /&gt;&amp;nbsp;//&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ios_base:&lt;IMG alt=":smileysurprised:" class="emoticon emoticon-smileysurprised" id="smileysurprised" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-surprised.gif" title="Smiley Surprised" /&gt;penmode mode = ios_base::in | ios_base:&lt;IMG alt=":smileysurprised:" class="emoticon emoticon-smileysurprised" id="smileysurprised" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-surprised.gif" title="Smiley Surprised" /&gt;ut);&lt;BR /&gt;&lt;/EM&gt;&lt;STRONG&gt;&amp;nbsp;fstream inOut4 = fstream(c, mode);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2009 14:56:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Problems-with-fstream/m-p/192744#M4923</guid>
      <dc:creator>mama</dc:creator>
      <dc:date>2009-06-23T14:56:49Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with fstream( )</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Problems-with-fstream/m-p/192745#M4924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Oh what a disaster. Now I found the reason for the compile errors by using fstream( ).&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;I wondered why it makes no difference if I #include&amp;lt;fstream&amp;gt; or not. The reason is&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;that the basic_fstream class is commented out by preprocessor define _MSL_NO_FILE_IO&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;in the include file &amp;lt;fstream&amp;gt;.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;So the compiler sees just the following forward declaration.....&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;EM&gt;&lt;FONT face="Times New Roman"&gt;&lt;/FONT&gt;&lt;/EM&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT face="Times New Roman"&gt;// fstream is just forwarded to basic_fstream in file "iosfwd"&lt;BR /&gt;&lt;STRONG&gt;template &amp;lt;class charT, class traits = char_traits&amp;lt;charT&amp;gt; &amp;gt;&lt;BR /&gt;class basic_fstream;&lt;BR /&gt;typedef basic_fstream&amp;lt;char, char_traits&amp;lt;char&amp;gt; &amp;gt; fstream;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;.....but the implementation of&lt;/FONT&gt; &lt;FONT face="arial,helvetica,sans-serif"&gt;class basic_fstream is missing.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;So I thought no problem...comment out #define&lt;/FONT&gt; &lt;FONT face="arial,helvetica,sans-serif"&gt;_MSL_NO_FILE_IO an it works.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;No way, when I comment it out I got other compile error in Metrowerks MSL library:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;----------------------&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Error : undefined identifier 'fclose'&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;(point of instantiation: 'readFile()')&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;(instantiating: 'Metrowerks::c_filebuf&amp;lt;char, std::char_traits&amp;lt;char&amp;gt;&amp;gt;::~c_filebuf()')&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;(instantiating: 'Metrowerks::c_filebuf&amp;lt;char, std::char_traits&amp;lt;char&amp;gt;&amp;gt;::close()')&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;msl_c_filebuf line 323 if (_CSTD::fclose(file_) != 0)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;(corresponding point of instantiation for 'Metrowerks::c_filebuf&amp;lt;char, std::char_traits&amp;lt;char&amp;gt;&amp;gt;::close()')&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;msl_c_filebuf line 141 }&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;(corresponding point of instantiation for 'Metrowerks::c_filebuf&amp;lt;char, std::char_traits&amp;lt;char&amp;gt;&amp;gt;::~c_filebuf()')&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;test.cpp line 30 }&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;----------------------&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Either the fstream support does not work when using MSL with E68k, or I have to activate/deactivate other precompiler seeting here. Has any body of you experience with this kind of problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in Advance&lt;/P&gt;&lt;P&gt;Marc&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;EM&gt;&lt;/EM&gt;&lt;P&gt;&lt;EM&gt;P.S. Info from MSL C++ Manual:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;_MSL_NO_FILE_IO: This flag allows you to turn off file support while keeping memory mapped streams (stringstream) functional.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2009 17:35:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Problems-with-fstream/m-p/192745#M4924</guid>
      <dc:creator>mama</dc:creator>
      <dc:date>2009-06-23T17:35:10Z</dc:date>
    </item>
  </channel>
</rss>

