<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[gcc2.x --&amp;gt; gcc3.x problem]]></title><description><![CDATA[<p>Ich habe folgendes Problem beim Umschreiben meines Codes von gcc2.x auf gcc3.x:</p>
<p>meine Klasse ibfstream soll eine Datei komplett einlesen, und von istream abgeleitet sein. Deklaration:</p>
<pre><code class="language-cpp">#include&lt;iostream&gt;
#include&lt;stdio.h&gt;
#include&lt;iosfwd&gt;
using namespace std;

class ibfstream :  public istream { 
public:
  ibfstream(char *inputfilename);
  ~ibfstream();
 istringstream *strstr;

private:

  int length;
  char *tmpstr;
};
</code></pre>
<p>Mein Konstruktor:</p>
<pre><code class="language-cpp">ibfstream::ibfstream(char *inputfilename){
......
}
</code></pre>
<p>gibt dann folgenden Fehler aus:</p>
<p>test.cpp: In constructor <code>ibfstream::ibfstream(char*)': test.cpp:6: error: no matching function for call to</code>std::basic_istream&lt;char,<br />
std::char_traits&lt;char&gt; &gt;::basic_istream(const &lt;anonymous&gt;**)'<br />
/usr/include/c++/3.3.5/iosfwd:61: error: candidates are:<br />
std::basic_istream&lt;char, std::char_traits&lt;char&gt; &gt;::basic_istream(const<br />
std::basic_istream&lt;char, std::char_traits&lt;char&gt; &gt;&amp;)<br />
/usr/include/c++/3.3.5/istream:105: error:<br />
std::basic_istream&lt;_CharT,<br />
_Traits&gt;::basic_istream(std::basic_streambuf&lt;_CharT, _Traits&gt;*) [with _CharT<br />
= char, _Traits = std::char_traits&lt;char&gt;]</p>
<p>wiesowieso???<br />
auch wenn ich meine Variable char *inputfilename const setze funzt es nicht.<br />
wenn ich public istream weglasse compilierts nur bekomme ich dann später in anderen Datein Probleme wo meine ibfstream-Objekte auf istream-Routinen zugreifen möchten.</p>
<p>und noch ne Frage:<br />
was macht ostream::init((*strstr).rdbuf()), also diese init()-Funktion ?</p>
<p>Jede Hilfe ist sehr willkommen!!!</p>
<p><strong>&lt;edit&gt;Bitte Code-Tags verwenden!&lt;/edit&gt;</strong></p>
]]></description><link>https://www.c-plusplus.net/forum/topic/120812/gcc2-x-gt-gcc3-x-problem</link><generator>RSS for Node</generator><lastBuildDate>Sat, 22 Aug 2026 12:21:25 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/120812.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 16 Sep 2005 14:51:55 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to gcc2.x --&amp;gt; gcc3.x problem on Sun, 18 Sep 2005 10:57:28 GMT]]></title><description><![CDATA[<p>Ich habe folgendes Problem beim Umschreiben meines Codes von gcc2.x auf gcc3.x:</p>
<p>meine Klasse ibfstream soll eine Datei komplett einlesen, und von istream abgeleitet sein. Deklaration:</p>
<pre><code class="language-cpp">#include&lt;iostream&gt;
#include&lt;stdio.h&gt;
#include&lt;iosfwd&gt;
using namespace std;

class ibfstream :  public istream { 
public:
  ibfstream(char *inputfilename);
  ~ibfstream();
 istringstream *strstr;

private:

  int length;
  char *tmpstr;
};
</code></pre>
<p>Mein Konstruktor:</p>
<pre><code class="language-cpp">ibfstream::ibfstream(char *inputfilename){
......
}
</code></pre>
<p>gibt dann folgenden Fehler aus:</p>
<p>test.cpp: In constructor <code>ibfstream::ibfstream(char*)': test.cpp:6: error: no matching function for call to</code>std::basic_istream&lt;char,<br />
std::char_traits&lt;char&gt; &gt;::basic_istream(const &lt;anonymous&gt;**)'<br />
/usr/include/c++/3.3.5/iosfwd:61: error: candidates are:<br />
std::basic_istream&lt;char, std::char_traits&lt;char&gt; &gt;::basic_istream(const<br />
std::basic_istream&lt;char, std::char_traits&lt;char&gt; &gt;&amp;)<br />
/usr/include/c++/3.3.5/istream:105: error:<br />
std::basic_istream&lt;_CharT,<br />
_Traits&gt;::basic_istream(std::basic_streambuf&lt;_CharT, _Traits&gt;*) [with _CharT<br />
= char, _Traits = std::char_traits&lt;char&gt;]</p>
<p>wiesowieso???<br />
auch wenn ich meine Variable char *inputfilename const setze funzt es nicht.<br />
wenn ich public istream weglasse compilierts nur bekomme ich dann später in anderen Datein Probleme wo meine ibfstream-Objekte auf istream-Routinen zugreifen möchten.</p>
<p>und noch ne Frage:<br />
was macht ostream::init((*strstr).rdbuf()), also diese init()-Funktion ?</p>
<p>Jede Hilfe ist sehr willkommen!!!</p>
<p><strong>&lt;edit&gt;Bitte Code-Tags verwenden!&lt;/edit&gt;</strong></p>
]]></description><link>https://www.c-plusplus.net/forum/post/873755</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/873755</guid><dc:creator><![CDATA[nakaa11]]></dc:creator><pubDate>Sun, 18 Sep 2005 10:57:28 GMT</pubDate></item><item><title><![CDATA[Reply to gcc2.x --&amp;gt; gcc3.x problem on Sat, 17 Sep 2005 14:20:37 GMT]]></title><description><![CDATA[<p>Dieser Thread wurde von Moderator/in <a href="http://www.c-plusplus.net/forum/profile.php?mode=viewprofile&amp;u=2739" rel="nofollow">AJ</a> aus dem Forum <a href="http://www.c-plusplus.net/forum/viewforum.php?f=10" rel="nofollow">ANSI C</a> in das Forum <a href="http://www.c-plusplus.net/forum/viewforum.php?f=15" rel="nofollow">C++</a> verschoben.</p>
<p>Im Zweifelsfall bitte auch folgende Hinweise beachten:<br />
<a href="http://www.c-plusplus.net/forum/viewtopic.php?t=39405" rel="nofollow">C/C++ Forum :: FAQ - Sonstiges :: Wohin mit meiner Frage?</a></p>
<p><em>Dieses Posting wurde automatisch erzeugt.</em></p>
]]></description><link>https://www.c-plusplus.net/forum/post/874365</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/874365</guid><dc:creator><![CDATA[C++ Forumbot]]></dc:creator><pubDate>Sat, 17 Sep 2005 14:20:37 GMT</pubDate></item></channel></rss>