<?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[gcc will nicht wie ich]]></title><description><![CDATA[<p>Keine Ahnung, ob das hier optimal platziert ist...<br />
denn das Gefrickel, welches Probleme verursacht, ist nicht von mir, und ich will mich damit auch erstmal gar nicht tiefergehend beschaeftigen - es soll nur funktionieren. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /><br />
Mich interessiert nur, ob ich den Fehler evtl. selbst irgendwie schnell beheben kann, oder ob ich versuchen muss/sollte, den Autor damit zu nerven.</p>
<p>Und zwar geht es um <a href="http://bisqwit.iki.fi/source/chronotools.html" rel="nofollow">dieses</a> verlockend klingende tool. Die erste Huerden mit fehlendem g++ und boost-Libs auf meiner Kubuntu-Installation habe ich noch genommen, aber jetzt spuckt das Teil beim Compilieren immer folgendes aus:</p>
<blockquote>
<p>make -C ct<br />
make: Gehe in Verzeichnis '/media/data/nettemp/snes/chrono trigger/ct'<br />
g++ -O3 -Wall -Wundef -Wcast-qual -Wpointer-arith -Wconversion -Wwrite-strings -Wsign-compare -Wredundant-decls -Wcast-align -Wformat -Woverloaded-virtual -fno-default-inline -I. -DVERSION=\&quot;1.15.3.4\&quot; -pipe -g -c -o ctcset.o <a href="http://ctcset.cc" rel="nofollow">ctcset.cc</a><br />
<a href="http://ctcset.cc:266" rel="nofollow">ctcset.cc:266</a>: error: no member function ?compare? declared in ?std::char_traits&lt;short unsigned int&gt;?<br />
<a href="http://ctcset.cc:266" rel="nofollow">ctcset.cc:266</a>: error: invalid function declaration<br />
<a href="http://ctcset.cc:274" rel="nofollow">ctcset.cc:274</a>: error: no member function ?copy? declared in ?std::char_traits&lt;short unsigned int&gt;?<br />
<a href="http://ctcset.cc:274" rel="nofollow">ctcset.cc:274</a>: error: invalid function declaration<br />
<a href="http://ctcset.cc:282" rel="nofollow">ctcset.cc:282</a>: error: no member function ?move? declared in ?std::char_traits&lt;short unsigned int&gt;?<br />
<a href="http://ctcset.cc:282" rel="nofollow">ctcset.cc:282</a>: error: invalid function declaration<br />
<a href="http://ctcset.cc:291" rel="nofollow">ctcset.cc:291</a>: error: no member function ?assign? declared in ?std::char_traits&lt;short unsigned int&gt;?<br />
<a href="http://ctcset.cc:291" rel="nofollow">ctcset.cc:291</a>: error: invalid function declaration<br />
make: *** [ctcset.o] Fehler 1<br />
make: Verlasse Verzeichnis '/media/data/nettemp/snes/chrono trigger/ct'</p>
</blockquote>
<p>Dazu duerften folgende Zeilen gehoeren:</p>
<pre><code class="language-cpp">namespace std/*__gnu_cxx*/
{
  template&lt;&gt; 
  int char_traits&lt;ctchar&gt;::
  compare(const ctchar* s1, const ctchar* s2, std::size_t n)      // Zeile 266
  {
    for(unsigned c=0; c&lt;n; ++c) if(s1[c] != s2[c]) return s1[c] &lt; s2[c] ? -1 : 1;
    return 0;
  }

  template&lt;&gt;
  ctchar* char_traits&lt;ctchar&gt;::
  copy(ctchar* s1, const ctchar* s2, size_t n)      // Zeile 274
  {
    for(unsigned c=0; c&lt;n; ++c)s1[c] = s2[c];
    return s1;
  }

  template&lt;&gt;
  ctchar* char_traits&lt;ctchar&gt;::
  move(ctchar* s1, const ctchar* s2, size_t n)    // Zeile 282
  {
    if(s1 &lt; s2) return copy(s1,s2,n);
    for(unsigned c=n; c--&gt;0; )s1[c] = s2[c];
    return s1;
  }

  template&lt;&gt;
  ctchar* char_traits&lt;ctchar&gt;::
  assign(ctchar* s, size_t n, ctchar a)    // Zeile 291
  {
    for(unsigned c=0; c&lt;n; ++c) s[c] = a;
    return s;
  }
}
</code></pre>
<p>g++ ist uebrigens Version 4.1.2, falls das relevant ist.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/167048/gcc-will-nicht-wie-ich</link><generator>RSS for Node</generator><lastBuildDate>Tue, 15 Sep 2026 17:14:04 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/167048.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 06 Dec 2006 01:43:40 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to gcc will nicht wie ich on Wed, 06 Dec 2006 01:43:40 GMT]]></title><description><![CDATA[<p>Keine Ahnung, ob das hier optimal platziert ist...<br />
denn das Gefrickel, welches Probleme verursacht, ist nicht von mir, und ich will mich damit auch erstmal gar nicht tiefergehend beschaeftigen - es soll nur funktionieren. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /><br />
Mich interessiert nur, ob ich den Fehler evtl. selbst irgendwie schnell beheben kann, oder ob ich versuchen muss/sollte, den Autor damit zu nerven.</p>
<p>Und zwar geht es um <a href="http://bisqwit.iki.fi/source/chronotools.html" rel="nofollow">dieses</a> verlockend klingende tool. Die erste Huerden mit fehlendem g++ und boost-Libs auf meiner Kubuntu-Installation habe ich noch genommen, aber jetzt spuckt das Teil beim Compilieren immer folgendes aus:</p>
<blockquote>
<p>make -C ct<br />
make: Gehe in Verzeichnis '/media/data/nettemp/snes/chrono trigger/ct'<br />
g++ -O3 -Wall -Wundef -Wcast-qual -Wpointer-arith -Wconversion -Wwrite-strings -Wsign-compare -Wredundant-decls -Wcast-align -Wformat -Woverloaded-virtual -fno-default-inline -I. -DVERSION=\&quot;1.15.3.4\&quot; -pipe -g -c -o ctcset.o <a href="http://ctcset.cc" rel="nofollow">ctcset.cc</a><br />
<a href="http://ctcset.cc:266" rel="nofollow">ctcset.cc:266</a>: error: no member function ?compare? declared in ?std::char_traits&lt;short unsigned int&gt;?<br />
<a href="http://ctcset.cc:266" rel="nofollow">ctcset.cc:266</a>: error: invalid function declaration<br />
<a href="http://ctcset.cc:274" rel="nofollow">ctcset.cc:274</a>: error: no member function ?copy? declared in ?std::char_traits&lt;short unsigned int&gt;?<br />
<a href="http://ctcset.cc:274" rel="nofollow">ctcset.cc:274</a>: error: invalid function declaration<br />
<a href="http://ctcset.cc:282" rel="nofollow">ctcset.cc:282</a>: error: no member function ?move? declared in ?std::char_traits&lt;short unsigned int&gt;?<br />
<a href="http://ctcset.cc:282" rel="nofollow">ctcset.cc:282</a>: error: invalid function declaration<br />
<a href="http://ctcset.cc:291" rel="nofollow">ctcset.cc:291</a>: error: no member function ?assign? declared in ?std::char_traits&lt;short unsigned int&gt;?<br />
<a href="http://ctcset.cc:291" rel="nofollow">ctcset.cc:291</a>: error: invalid function declaration<br />
make: *** [ctcset.o] Fehler 1<br />
make: Verlasse Verzeichnis '/media/data/nettemp/snes/chrono trigger/ct'</p>
</blockquote>
<p>Dazu duerften folgende Zeilen gehoeren:</p>
<pre><code class="language-cpp">namespace std/*__gnu_cxx*/
{
  template&lt;&gt; 
  int char_traits&lt;ctchar&gt;::
  compare(const ctchar* s1, const ctchar* s2, std::size_t n)      // Zeile 266
  {
    for(unsigned c=0; c&lt;n; ++c) if(s1[c] != s2[c]) return s1[c] &lt; s2[c] ? -1 : 1;
    return 0;
  }

  template&lt;&gt;
  ctchar* char_traits&lt;ctchar&gt;::
  copy(ctchar* s1, const ctchar* s2, size_t n)      // Zeile 274
  {
    for(unsigned c=0; c&lt;n; ++c)s1[c] = s2[c];
    return s1;
  }

  template&lt;&gt;
  ctchar* char_traits&lt;ctchar&gt;::
  move(ctchar* s1, const ctchar* s2, size_t n)    // Zeile 282
  {
    if(s1 &lt; s2) return copy(s1,s2,n);
    for(unsigned c=n; c--&gt;0; )s1[c] = s2[c];
    return s1;
  }

  template&lt;&gt;
  ctchar* char_traits&lt;ctchar&gt;::
  assign(ctchar* s, size_t n, ctchar a)    // Zeile 291
  {
    for(unsigned c=0; c&lt;n; ++c) s[c] = a;
    return s;
  }
}
</code></pre>
<p>g++ ist uebrigens Version 4.1.2, falls das relevant ist.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1187627</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1187627</guid><dc:creator><![CDATA[Nobuo T]]></dc:creator><pubDate>Wed, 06 Dec 2006 01:43:40 GMT</pubDate></item><item><title><![CDATA[Reply to gcc will nicht wie ich on Wed, 06 Dec 2006 08:16:33 GMT]]></title><description><![CDATA[<p>Bevor du anfängst, Methoden für eine Spezialisierung anzulegen, mußt du afaik erstmal dem Compiler sagen, daß diese Spezialisierung existiert (im Standard gibt's nur char_traits&lt;char&gt; und char_traits&lt;wchar_t&gt;).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1187690</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1187690</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Wed, 06 Dec 2006 08:16:33 GMT</pubDate></item><item><title><![CDATA[Reply to gcc will nicht wie ich on Wed, 06 Dec 2006 11:34:12 GMT]]></title><description><![CDATA[<p>Bin mir nicht ganz sicher, ob das nach C++ oder nach &quot;Andere Compiler&quot; gehört, aber da ich eher zu ersterem tendiere (dürfte ja ein Problem mit dem Code und nicht mit dem Compiler sein) verschiebe ich Dich mal zu den Kollegen nach C++.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1187816</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1187816</guid><dc:creator><![CDATA[nman]]></dc:creator><pubDate>Wed, 06 Dec 2006 11:34:12 GMT</pubDate></item><item><title><![CDATA[Reply to gcc will nicht wie ich on Wed, 06 Dec 2006 11:34:26 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=4178" rel="nofollow">nman</a> aus dem Forum <a href="http://www.c-plusplus.net/forum/viewforum.php?f=5" rel="nofollow">Linux/Unix</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/1187817</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1187817</guid><dc:creator><![CDATA[C++ Forumbot]]></dc:creator><pubDate>Wed, 06 Dec 2006 11:34:26 GMT</pubDate></item></channel></rss>