<?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[nullptr in MinGW]]></title><description><![CDATA[<p>Ich hatte gelesen, das der neue C++-Standard ein Ersatz für</p>
<pre><code>NULL
</code></pre>
<p>bei Zeigern vorschlägt, nämlich</p>
<pre><code>nullptr
</code></pre>
<p>.<br />
Vorteile werden u.a. hier aufgelistet: <a href="http://www.c-plusplus.net/forum/220511-full" rel="nofollow">http://www.c-plusplus.net/forum/220511-full</a>.<br />
Ich benutze MinGW mit g++ in Version 4.6.2, und erhalte folgenden Fehler:</p>
<blockquote>
<p>error: 'nullptr' was not declared in this scope</p>
</blockquote>
<p>.<br />
Ich hatte eigentlich erfahren, das</p>
<pre><code>nullptr
</code></pre>
<p>ab Version 4.6 untertützt wird. Der Kommandozeilencompiler von Visual-Studio 2010 Express kompiliert den Code ohne Probleme.<br />
Ich habe keinerlei zusätzliche Bibliotheken eingebunden, liegt es eventuell daran?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/312403/nullptr-in-mingw</link><generator>RSS for Node</generator><lastBuildDate>Sun, 02 Aug 2026 18:42:44 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/312403.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 03 Jan 2013 22:24:31 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to nullptr in MinGW on Thu, 03 Jan 2013 22:24:31 GMT]]></title><description><![CDATA[<p>Ich hatte gelesen, das der neue C++-Standard ein Ersatz für</p>
<pre><code>NULL
</code></pre>
<p>bei Zeigern vorschlägt, nämlich</p>
<pre><code>nullptr
</code></pre>
<p>.<br />
Vorteile werden u.a. hier aufgelistet: <a href="http://www.c-plusplus.net/forum/220511-full" rel="nofollow">http://www.c-plusplus.net/forum/220511-full</a>.<br />
Ich benutze MinGW mit g++ in Version 4.6.2, und erhalte folgenden Fehler:</p>
<blockquote>
<p>error: 'nullptr' was not declared in this scope</p>
</blockquote>
<p>.<br />
Ich hatte eigentlich erfahren, das</p>
<pre><code>nullptr
</code></pre>
<p>ab Version 4.6 untertützt wird. Der Kommandozeilencompiler von Visual-Studio 2010 Express kompiliert den Code ohne Probleme.<br />
Ich habe keinerlei zusätzliche Bibliotheken eingebunden, liegt es eventuell daran?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2285944</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2285944</guid><dc:creator><![CDATA[ch++ 0]]></dc:creator><pubDate>Thu, 03 Jan 2013 22:24:31 GMT</pubDate></item><item><title><![CDATA[Reply to nullptr in MinGW on Thu, 03 Jan 2013 22:35:05 GMT]]></title><description><![CDATA[<p>Kompilierst du mit -std=c++11? PS: MinGW kennt doch schon Version 4.7?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2285948</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2285948</guid><dc:creator><![CDATA[cooky451]]></dc:creator><pubDate>Thu, 03 Jan 2013 22:35:05 GMT</pubDate></item><item><title><![CDATA[Reply to nullptr in MinGW on Thu, 03 Jan 2013 22:43:04 GMT]]></title><description><![CDATA[<p>Du musst die C++11 Sprachfeatures per Commandozeilenparameter aktivieren. In Version 4.6 war C++11 noch nicht ganz fertig, deswegen heißt es dabei noch C++0x verwendet. Du fügst bei den Compilerflags einfach -std=c++0x an, damit das funktioniert. Bei neueren gcc Versionen muss man -std=c++11 verwenden.</p>
<p>Warum aber auch bei neuen Versionen der alte Standart verwendet wird und man den neuen explizit angeben muss, würde mich auch mal interessieren. Bei den unfertigen Standarts C++0x kann ich das gut verstehen, aber eigentlich sollte man die alten doch allmählich verabschieden und nicht noch bevorzugen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2285952</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2285952</guid><dc:creator><![CDATA[Marthog]]></dc:creator><pubDate>Thu, 03 Jan 2013 22:43:04 GMT</pubDate></item><item><title><![CDATA[Reply to nullptr in MinGW on Thu, 03 Jan 2013 22:50:10 GMT]]></title><description><![CDATA[<p>Man muss den Standard eh immer explizit angeben (zusammen mit -pedantic üblicherweise), weil der default nicht C++98 ist, sondern C++ mit ein paar GCC Spracherweiterungen etc. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /><br />
Abgesehen davon werden die das bestimmt nicht ändern, weil dann viele makefiles kaputt gehen würde.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2285956</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2285956</guid><dc:creator><![CDATA[cooky451]]></dc:creator><pubDate>Thu, 03 Jan 2013 22:50:10 GMT</pubDate></item><item><title><![CDATA[Reply to nullptr in MinGW on Fri, 04 Jan 2013 17:24:07 GMT]]></title><description><![CDATA[<p>Danke für die Tipps, hat mit -std=c++0x funktioniert. Jetzt muss ich mir nur noch minGW updaten, was mich wundert, da die Installation etwa 5 Tage alt ist und ich mir bei SourceForge den neuesten Installer gesucht hatte.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2286262</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2286262</guid><dc:creator><![CDATA[ch++ 0]]></dc:creator><pubDate>Fri, 04 Jan 2013 17:24:07 GMT</pubDate></item><item><title><![CDATA[Reply to nullptr in MinGW on Fri, 04 Jan 2013 20:30:35 GMT]]></title><description><![CDATA[<p>Marthog schrieb:</p>
<blockquote>
<p>Bei neueren gcc Versionen muss man -std=c++11 verwenden.</p>
</blockquote>
<p>Muss man, oder wird <code>-std=c++0x</code> weiterhin funktionieren? Ich habe dazu nichts Ausdrückliches gefunden.</p>
<p>ch++ schrieb:</p>
<blockquote>
<p>Jetzt muss ich mir nur noch minGW updaten, was mich wundert, da die Installation etwa 5 Tage alt ist und ich mir bei SourceForge den neuesten Installer gesucht hatte.</p>
</blockquote>
<p><a href="http://sourceforge.net/projects/mingw/files/" rel="nofollow">Sieht nicht so aus</a>, als gäbe es eine neuere. Unter MinGW muss man sich wohl noch bis g++ 4.7 gedulden...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2286346</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2286346</guid><dc:creator><![CDATA[Nexus]]></dc:creator><pubDate>Fri, 04 Jan 2013 20:30:35 GMT</pubDate></item><item><title><![CDATA[Reply to nullptr in MinGW on Fri, 04 Jan 2013 20:40:47 GMT]]></title><description><![CDATA[<p>MinGW kennt definitiv Version 4.7</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2286351</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2286351</guid><dc:creator><![CDATA[cooky451]]></dc:creator><pubDate>Fri, 04 Jan 2013 20:40:47 GMT</pubDate></item><item><title><![CDATA[Reply to nullptr in MinGW on Fri, 04 Jan 2013 20:59:29 GMT]]></title><description><![CDATA[<p>cooky451 hat recht. Bei der Installation muss nur &quot;Download latest repository catalogues&quot; auswählt werden oder man muss MinGW per mingw-get.exe aktualisieren.</p>
<p>Alternative: rubenvbs MinGW-w64-Builds verwenden:<br />
<a href="http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/rubenvb/" rel="nofollow">http://sourceforge.net/projects/mingw-w64/files/Toolchains targetting Win32/Personal Builds/rubenvb/</a><br />
<a href="http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Personal%20Builds/rubenvb/" rel="nofollow">http://sourceforge.net/projects/mingw-w64/files/Toolchains targetting Win64/Personal Builds/rubenvb/</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2286359</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2286359</guid><dc:creator><![CDATA[EinGast]]></dc:creator><pubDate>Fri, 04 Jan 2013 20:59:29 GMT</pubDate></item><item><title><![CDATA[Reply to nullptr in MinGW on Sat, 05 Jan 2013 17:23:09 GMT]]></title><description><![CDATA[<p>Der Tip mit „download latest repository catalogues“ ist gut.<br />
Danke</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2286575</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2286575</guid><dc:creator><![CDATA[ch++ 0]]></dc:creator><pubDate>Sat, 05 Jan 2013 17:23:09 GMT</pubDate></item></channel></rss>