<?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[Compiler überprüfen]]></title><description><![CDATA[<p>Hallo,</p>
<p>kann mir jemand sagen, ob es ein Makro gibt, dass standardmäßig Ausschluss darauf gibt, ob der Visual Studio VC-Compiler benutzt wird?</p>
<p>Ich würde gerne vor einem Code-Segment darauf prüfen, genau wie man es ja mit</p>
<pre><code class="language-cpp">#ifdef __cplusplus
     // C++-Code
#else
     // C-Code
#endif
</code></pre>
<p>machen kann.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/250306/compiler-überprüfen</link><generator>RSS for Node</generator><lastBuildDate>Wed, 16 Sep 2026 02:23:05 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/250306.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 16 Sep 2009 13:09:46 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Compiler überprüfen on Wed, 16 Sep 2009 13:09:46 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>kann mir jemand sagen, ob es ein Makro gibt, dass standardmäßig Ausschluss darauf gibt, ob der Visual Studio VC-Compiler benutzt wird?</p>
<p>Ich würde gerne vor einem Code-Segment darauf prüfen, genau wie man es ja mit</p>
<pre><code class="language-cpp">#ifdef __cplusplus
     // C++-Code
#else
     // C-Code
#endif
</code></pre>
<p>machen kann.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1779790</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1779790</guid><dc:creator><![CDATA[FrEEzE2046]]></dc:creator><pubDate>Wed, 16 Sep 2009 13:09:46 GMT</pubDate></item><item><title><![CDATA[Reply to Compiler überprüfen on Wed, 16 Sep 2009 13:43:27 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>soweit ich weiß ist der MS Compiler der einzige C++/CLI Compiler. Wofür brauchst du dann so eine überprüfung?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1779816</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1779816</guid><dc:creator><![CDATA[Zwergli]]></dc:creator><pubDate>Wed, 16 Sep 2009 13:43:27 GMT</pubDate></item><item><title><![CDATA[Reply to Compiler überprüfen on Wed, 16 Sep 2009 14:16:42 GMT]]></title><description><![CDATA[<p>Zwergli schrieb:</p>
<blockquote>
<p>Hallo,</p>
<p>soweit ich weiß ist der MS Compiler der einzige C++/CLI Compiler. Wofür brauchst du dann so eine überprüfung?</p>
</blockquote>
<p>Ach verdammt,</p>
<p>natürlich falsches Subforum. Gehört natürlich in den reinen C++-Bereich.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1779850</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1779850</guid><dc:creator><![CDATA[FrEEzE2046]]></dc:creator><pubDate>Wed, 16 Sep 2009 14:16:42 GMT</pubDate></item><item><title><![CDATA[Reply to Compiler überprüfen on Wed, 16 Sep 2009 14:39:34 GMT]]></title><description><![CDATA[<p>Dieser Thread wurde von Moderator/in <a href="http://www.c-plusplus.net/forum/profile-var-mode-is-viewprofile-and-u-is-18363.html" rel="nofollow">Jochen Kalmbach</a> aus dem Forum <a href="http://www.c-plusplus.net/forum/viewforum-var-f-is-58.html" rel="nofollow">C++/CLI mit .NET</a> in das Forum <a href="http://www.c-plusplus.net/forum/viewforum-var-f-is-15.html" rel="nofollow">C++</a> verschoben.</p>
<p>Im Zweifelsfall bitte auch folgende Hinweise beachten:<br />
<a href="http://www.c-plusplus.net/forum/viewtopic-var-t-is-39405.html" 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/1779872</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1779872</guid><dc:creator><![CDATA[C++ Forumbot]]></dc:creator><pubDate>Wed, 16 Sep 2009 14:39:34 GMT</pubDate></item><item><title><![CDATA[Reply to Compiler überprüfen on Wed, 16 Sep 2009 14:53:39 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">_MSC_VER
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1779883</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1779883</guid><dc:creator><![CDATA[Nexus]]></dc:creator><pubDate>Wed, 16 Sep 2009 14:53:39 GMT</pubDate></item><item><title><![CDATA[Reply to Compiler überprüfen on Wed, 16 Sep 2009 15:39:52 GMT]]></title><description><![CDATA[<p>Für Windows allgemein kannst du</p>
<pre><code class="language-cpp">#ifdef _WIN32
</code></pre>
<p>benutzen<br />
und für den MSVC-Compiler</p>
<pre><code class="language-cpp">#ifdef _MSC_VER
</code></pre>
<p>bzw. sogar noch explizit die Version (s. <a href="http://support.microsoft.com/kb/65472" rel="nofollow">http://support.microsoft.com/kb/65472</a> und <a href="http://msdn.microsoft.com/en-us/library/b0084kay.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/b0084kay.aspx</a>) abfragen:</p>
<pre><code class="language-cpp">#if _MSC_VER &gt;= 1500 // mindestens MSVC 2008
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1779924</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1779924</guid><dc:creator><![CDATA[Th69]]></dc:creator><pubDate>Wed, 16 Sep 2009 15:39:52 GMT</pubDate></item><item><title><![CDATA[Reply to Compiler überprüfen on Wed, 16 Sep 2009 19:15:54 GMT]]></title><description><![CDATA[<p>Th69 schrieb:</p>
<blockquote>
<p>Für Windows allgemein kannst du</p>
<pre><code class="language-cpp">#ifdef _WIN32
</code></pre>
</blockquote>
<p>sicher?<br />
glaub ich nicht...<br />
imho hat &quot;nur&quot; der MSVC dieses makro - allerdings definiert er das auch nur, wenn es nicht für ein 64bit Windows ist:</p>
<pre><code class="language-cpp">#ifdef _MSC_VER
#  if defined(_WIN32) || defined(_WIN64)
#    define PREFIX_WINDOWS
#  endif
#else
#  error unknown compiler
#endif
</code></pre>
<p>allerdings kann man beim msvc ja (fast) schon sicher sein, dass du für windows programmierst!?</p>
<p>bb</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1780066</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1780066</guid><dc:creator><![CDATA[unskilled]]></dc:creator><pubDate>Wed, 16 Sep 2009 19:15:54 GMT</pubDate></item><item><title><![CDATA[Reply to Compiler überprüfen on Wed, 16 Sep 2009 19:34:06 GMT]]></title><description><![CDATA[<blockquote>
<p>allerdings kann man beim msvc ja (fast) schon sicher sein, dass du für windows programmierst!?</p>
</blockquote>
<p>Vielleicht möchte er sein Programm nur an mehrere Compiler anpassen... Mache ich bei einem meiner Projekte auch, da es sich um eine (dynamische) Bibliothek handelt und der VC++ da eine Extrawurst verlangt (dllexport/-import)...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1780077</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1780077</guid><dc:creator><![CDATA[Mr X]]></dc:creator><pubDate>Wed, 16 Sep 2009 19:34:06 GMT</pubDate></item><item><title><![CDATA[Reply to Compiler überprüfen on Wed, 16 Sep 2009 19:36:39 GMT]]></title><description><![CDATA[<p>Mr X schrieb:</p>
<blockquote>
<blockquote>
<p>allerdings kann man beim msvc ja (fast) schon sicher sein, dass du für windows programmierst!?</p>
</blockquote>
<p>Vielleicht möchte er sein Programm nur an mehrere Compiler anpassen... Mache ich bei einem meiner Projekte auch, da es sich um eine (dynamische) Bibliothek handelt und der VC++ da eine Extrawurst verlangt (dllexport/-import)...</p>
</blockquote>
<p>ja - ich meinte damit nur, dass die abfrage<br />
<code>#if _MSC_VER</code> schon reicht, um sicherzugehen, dass es für windows ist...<br />
und man nicht noch mal extra auf _WIN32 bzw _WIN64 prüfen muss..</p>
<p>bb</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1780080</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1780080</guid><dc:creator><![CDATA[unskilled]]></dc:creator><pubDate>Wed, 16 Sep 2009 19:36:39 GMT</pubDate></item><item><title><![CDATA[Reply to Compiler überprüfen on Wed, 16 Sep 2009 20:35:51 GMT]]></title><description><![CDATA[<p>Eine Reihe verschiedener Makros, an Hand derer man den Compiler identifizieren kann, sieht man z.B. in <a href="http://www.boost.org/doc/libs/1_37_0/boost/config/select_compiler_config.hpp" rel="nofollow">Boosts select_compiler_config</a>. Weitere findet man wenn man sich in den ganzen config-headern umschaut.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1780111</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1780111</guid><dc:creator><![CDATA[pumuckl]]></dc:creator><pubDate>Wed, 16 Sep 2009 20:35:51 GMT</pubDate></item></channel></rss>