<?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[Probleme mit namespace]]></title><description><![CDATA[<p>Hallo,<br />
um ein wenig Ordnung zu schaffen, würde ich gerne meinem Projekt nachträglich einen eigenen Namespace verpassen. Dazu habe ich dann in jeder header datei entsprechend</p>
<pre><code>namespace bla{
...
}
</code></pre>
<p>und in jeder cpp datei</p>
<pre><code>using namespace bla;
</code></pre>
<p>eingefügt, bekomme aber xmal die folgende Fehlermeldung:</p>
<pre><code>1&gt;c:\program files (x86)\microsoft visual studio 8\vc\include\crtdbg.h(1141) : error C2039: 'delete[]': Ist kein Element von '`global namespace''
1&gt;c:\program files (x86)\microsoft visual studio 8\vc\include\crtdbg.h(1147) : error C2660: 'operator new': Funktion akzeptiert keine 4 Argumente
1&gt;c:\program files (x86)\microsoft visual studio 8\vc\include\crtdbg.h(1150) : error C2039: 'new[]': Ist kein Element von '`global namespace''
</code></pre>
<p>Weiß jemand woran das liegen könnte? Vorher hat das Projekt einwandfrei funktioniert.<br />
Danke im voraus! <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/topic/274586/probleme-mit-namespace</link><generator>RSS for Node</generator><lastBuildDate>Thu, 27 Aug 2026 10:33:14 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/274586.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 29 Sep 2010 06:14:32 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Probleme mit namespace on Wed, 29 Sep 2010 06:14:32 GMT]]></title><description><![CDATA[<p>Hallo,<br />
um ein wenig Ordnung zu schaffen, würde ich gerne meinem Projekt nachträglich einen eigenen Namespace verpassen. Dazu habe ich dann in jeder header datei entsprechend</p>
<pre><code>namespace bla{
...
}
</code></pre>
<p>und in jeder cpp datei</p>
<pre><code>using namespace bla;
</code></pre>
<p>eingefügt, bekomme aber xmal die folgende Fehlermeldung:</p>
<pre><code>1&gt;c:\program files (x86)\microsoft visual studio 8\vc\include\crtdbg.h(1141) : error C2039: 'delete[]': Ist kein Element von '`global namespace''
1&gt;c:\program files (x86)\microsoft visual studio 8\vc\include\crtdbg.h(1147) : error C2660: 'operator new': Funktion akzeptiert keine 4 Argumente
1&gt;c:\program files (x86)\microsoft visual studio 8\vc\include\crtdbg.h(1150) : error C2039: 'new[]': Ist kein Element von '`global namespace''
</code></pre>
<p>Weiß jemand woran das liegen könnte? Vorher hat das Projekt einwandfrei funktioniert.<br />
Danke im voraus! <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1958795</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1958795</guid><dc:creator><![CDATA[3DGamer]]></dc:creator><pubDate>Wed, 29 Sep 2010 06:14:32 GMT</pubDate></item><item><title><![CDATA[Reply to Probleme mit namespace on Wed, 29 Sep 2010 06:34:39 GMT]]></title><description><![CDATA[<p>Du darfst die includes nicht in deinem namespace schreiben, also<br />
statt</p>
<pre><code class="language-cpp">namespace bla
{
#include &lt;iostream&gt;
//...
</code></pre>
<pre><code class="language-cpp">#include &lt;iostream&gt;
namespace bla
{
//...
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1958799</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1958799</guid><dc:creator><![CDATA[1DProgger]]></dc:creator><pubDate>Wed, 29 Sep 2010 06:34:39 GMT</pubDate></item><item><title><![CDATA[Reply to Probleme mit namespace on Wed, 29 Sep 2010 06:35:14 GMT]]></title><description><![CDATA[<p>Beinhaltet Dein Namespace die Includes der C++ - Header?</p>
<p>Also etwa so:</p>
<p>namespace bla<br />
{<br />
...<br />
#include &lt;iostream&gt;<br />
...<br />
}</p>
<p>Die solltest Du außerhalb des Namespace inkludieren, und in Deinem Namespace nur Deine eigenen Deklarationen vereinbaren.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1958800</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1958800</guid><dc:creator><![CDATA[Belli]]></dc:creator><pubDate>Wed, 29 Sep 2010 06:35:14 GMT</pubDate></item><item><title><![CDATA[Reply to Probleme mit namespace on Wed, 29 Sep 2010 06:45:56 GMT]]></title><description><![CDATA[<p>Danke, in einer der Header dateien hatten sich #include &lt;stdlib.h&gt; und #include &lt;crtdbg.h&gt; versteckt, die das Problem ausgelöst haben!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1958803</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1958803</guid><dc:creator><![CDATA[3DGamer]]></dc:creator><pubDate>Wed, 29 Sep 2010 06:45:56 GMT</pubDate></item><item><title><![CDATA[Reply to Probleme mit namespace on Wed, 29 Sep 2010 07:12:50 GMT]]></title><description><![CDATA[<p>3DGamer schrieb:</p>
<blockquote>
<p>Danke, in einer der Header dateien hatten sich #include &lt;stdlib.h&gt; und #include &lt;crtdbg.h&gt; versteckt, die das Problem ausgelöst haben!</p>
</blockquote>
<pre><code class="language-cpp">#include &lt;cstdlib&gt;
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1958809</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1958809</guid><dc:creator><![CDATA[[[global:former_user]]]]></dc:creator><pubDate>Wed, 29 Sep 2010 07:12:50 GMT</pubDate></item></channel></rss>