<?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[E2021 bei BCB6, gcc kompiliert]]></title><description><![CDATA[<p>Hi,<br />
ich bin zwar nicht neu hier sondern ein fleißiger Leser, aber jetzt hab ich doch mal eine Frage ;).</p>
<p>Es geht um ein sehr einfaches Programm, das unter gcc version 3.4.2 [FreeBSD] problemlos kompiliert, unter Borland C++ Builder 6.0 aber einen Compiler Error &quot;E2021 Array must have at least one element&quot; in bitset.h ausspuckt.<br />
Ich hab keine Ahnung woran es liegen könnte, Änderungen an den Compileroptionen haben auch nix gebracht.<br />
Wenn ich statt &lt;10&gt; &lt;0&gt; nehme geht es sonderbarer Weise, aber das bringt natürlich nichts:</p>
<pre><code>#include &lt;vcl.h&gt; // in gcc auskommentiert ;)
#include &lt;stdio.h&gt;
#include &lt;math.h&gt;
#include &lt;bitset.h&gt;
#include &lt;iostream.h&gt;

class ctest
{
        std::bitset&lt;10&gt; mein_bitset;
};

int main(int argc, char* argv[])
{
return 0;
}
</code></pre>
<p>Wenn jemand Rat weiß, wär ich sehr dankbar.<br />
Gruß,<br />
Daywalker</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/113342/e2021-bei-bcb6-gcc-kompiliert</link><generator>RSS for Node</generator><lastBuildDate>Wed, 22 Jul 2026 04:39:36 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/113342.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 21 Jun 2005 21:38:24 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to E2021 bei BCB6, gcc kompiliert on Tue, 21 Jun 2005 21:38:24 GMT]]></title><description><![CDATA[<p>Hi,<br />
ich bin zwar nicht neu hier sondern ein fleißiger Leser, aber jetzt hab ich doch mal eine Frage ;).</p>
<p>Es geht um ein sehr einfaches Programm, das unter gcc version 3.4.2 [FreeBSD] problemlos kompiliert, unter Borland C++ Builder 6.0 aber einen Compiler Error &quot;E2021 Array must have at least one element&quot; in bitset.h ausspuckt.<br />
Ich hab keine Ahnung woran es liegen könnte, Änderungen an den Compileroptionen haben auch nix gebracht.<br />
Wenn ich statt &lt;10&gt; &lt;0&gt; nehme geht es sonderbarer Weise, aber das bringt natürlich nichts:</p>
<pre><code>#include &lt;vcl.h&gt; // in gcc auskommentiert ;)
#include &lt;stdio.h&gt;
#include &lt;math.h&gt;
#include &lt;bitset.h&gt;
#include &lt;iostream.h&gt;

class ctest
{
        std::bitset&lt;10&gt; mein_bitset;
};

int main(int argc, char* argv[])
{
return 0;
}
</code></pre>
<p>Wenn jemand Rat weiß, wär ich sehr dankbar.<br />
Gruß,<br />
Daywalker</p>
]]></description><link>https://www.c-plusplus.net/forum/post/814455</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/814455</guid><dc:creator><![CDATA[Daywalker313]]></dc:creator><pubDate>Tue, 21 Jun 2005 21:38:24 GMT</pubDate></item><item><title><![CDATA[Reply to E2021 bei BCB6, gcc kompiliert on Tue, 21 Jun 2005 22:10:11 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>bei BCB5 läßt sich das ohne Probleme kompilieren.<br />
du kannst ja mal die includes korrekt (also nach neuem Standard) schreiben und schauen was dann kommt</p>
<pre><code class="language-cpp">#include &lt;stdio&gt;
#include &lt;math&gt;
#include &lt;bitset&gt;
#include &lt;iostream&gt;
</code></pre>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/814474</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/814474</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Tue, 21 Jun 2005 22:10:11 GMT</pubDate></item><item><title><![CDATA[Reply to E2021 bei BCB6, gcc kompiliert on Tue, 21 Jun 2005 22:24:50 GMT]]></title><description><![CDATA[<p>Bei mir läßt sich das ohne Probleme kompilieren.<br />
(BCB 6 Prof. mit Updatepack 4)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/814477</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/814477</guid><dc:creator><![CDATA[asak]]></dc:creator><pubDate>Tue, 21 Jun 2005 22:24:50 GMT</pubDate></item></channel></rss>