<?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[Name mangling verhindern]]></title><description><![CDATA[<p>Ich nutze das VC2005, um eine DLL zu erstelllen. Gibt es da irgend eine Möglichkeit das name mangling zu verhindern?</p>
<p>Meine DLL sieht so aus:</p>
<pre><code class="language-cpp">#include &quot;stdafx.h&quot;
#include &quot;FirstDLL.h&quot;

BOOL APIENTRY DllMain( HMODULE hModule,
                       DWORD  ul_reason_for_call,
                       LPVOID lpReserved
					 )
{
    return TRUE;
}

EXPORT int add(int a,int b)
{
   return a+b;
}
</code></pre>
<p>Die Datei hat die Endung cpp. Ändere ich sie nach c, bekomme ich die Fehlermeldung:</p>
<blockquote>
<p>Fehler 1 fatal error C1853: Die vorkompilierte Header-Datei &quot;Debug\FirstDLL.pch&quot; stammt von einer früheren Version des Compilers, oder der vorkompilierte Header stammt von C++, und Sie verwenden Ihn von C (oder umgekehrt) c:\dokumente und einstellungen\mp\eigene dateien\visual studio 2005\projects\firstdll\firstdll\firstdll\firstdll.c 4</p>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/topic/156383/name-mangling-verhindern</link><generator>RSS for Node</generator><lastBuildDate>Sat, 25 Jul 2026 13:36:59 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/156383.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 16 Aug 2006 10:42:23 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Name mangling verhindern on Wed, 16 Aug 2006 10:47:39 GMT]]></title><description><![CDATA[<p>Ich nutze das VC2005, um eine DLL zu erstelllen. Gibt es da irgend eine Möglichkeit das name mangling zu verhindern?</p>
<p>Meine DLL sieht so aus:</p>
<pre><code class="language-cpp">#include &quot;stdafx.h&quot;
#include &quot;FirstDLL.h&quot;

BOOL APIENTRY DllMain( HMODULE hModule,
                       DWORD  ul_reason_for_call,
                       LPVOID lpReserved
					 )
{
    return TRUE;
}

EXPORT int add(int a,int b)
{
   return a+b;
}
</code></pre>
<p>Die Datei hat die Endung cpp. Ändere ich sie nach c, bekomme ich die Fehlermeldung:</p>
<blockquote>
<p>Fehler 1 fatal error C1853: Die vorkompilierte Header-Datei &quot;Debug\FirstDLL.pch&quot; stammt von einer früheren Version des Compilers, oder der vorkompilierte Header stammt von C++, und Sie verwenden Ihn von C (oder umgekehrt) c:\dokumente und einstellungen\mp\eigene dateien\visual studio 2005\projects\firstdll\firstdll\firstdll\firstdll.c 4</p>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/post/1118197</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1118197</guid><dc:creator><![CDATA[[[global:former_user]]]]></dc:creator><pubDate>Wed, 16 Aug 2006 10:47:39 GMT</pubDate></item><item><title><![CDATA[Reply to Name mangling verhindern on Wed, 16 Aug 2006 11:13:58 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>du must die exportierten Funktionen mit</p>
<pre><code class="language-cpp">extern &quot;C&quot;
</code></pre>
<p>exportieren.</p>
<p>Siehe auch diesen Beitrag:<br />
<a href="http://www.c-plusplus.net/forum/viewtopic-var-t-is-156186.html" rel="nofollow">http://www.c-plusplus.net/forum/viewtopic-var-t-is-156186.html</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1118236</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1118236</guid><dc:creator><![CDATA[Cosmixx]]></dc:creator><pubDate>Wed, 16 Aug 2006 11:13:58 GMT</pubDate></item><item><title><![CDATA[Reply to Name mangling verhindern on Wed, 16 Aug 2006 11:21:51 GMT]]></title><description><![CDATA[<p>Prima. Danke. Aber irgendwie habe ich über die Suche nichts gefunden.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1118245</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1118245</guid><dc:creator><![CDATA[[[global:former_user]]]]></dc:creator><pubDate>Wed, 16 Aug 2006 11:21:51 GMT</pubDate></item></channel></rss>