<?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[Fehlermeldung]]></title><description><![CDATA[<p>Hallo! Ich hab hier eine kleines Programm geschreiben, das die Kapazität eines Kugelkondensator <a href="http://berechnet.Es" rel="nofollow">berechnet.Es</a> teil sich auf in eine main, capacity.cpp und eine Headerdatei capacity.h. Wenn ich die Datei capacity kompeliere kommt folgende Fehlermeldumg [Linker error] undefined reference to'WinMain@16', Id returned 1 exit status...Kann mir mal jemand weiterhelfen? Vielen Dank im voraus! Anbei sind der Quellcode angehängt.</p>
<p>capacity.cpp</p>
<pre><code class="language-cpp">#include&lt;iostream&gt;
#include&lt;cmath&gt;
#include&quot;capacity.h&quot;

using namespace std;

double capacity (double R1, double R2)
{
       double capacity=0.0;
       cout&lt;&lt;&quot;R1,R2&quot;&lt;&lt;endl;
       cin&gt;&gt;R1&gt;&gt;R2;

if(R1&gt;=R2||R1&lt;=0||R2&lt;=0)
{
   return -1;
}
else
{
    capacity=4*3.14*8.8543*pow((float)10,-12)*R1*R2/(R2-R1);
    return capacity;
} 
}
</code></pre>
<p>main.cpp</p>
<pre><code class="language-cpp">#include&lt;iostream&gt;
#include &quot;capacity.h&quot;

using namespace std;

int main()
{
    double capacity=0.0;
    double R1=0.0;
    double R2=0.0;

    return 0;
}
</code></pre>
<p>capacity.h</p>
<pre><code class="language-cpp">#ifndef _CAPACITY_H_INCLUDED_
#define _CAPACITY_H_INCLUDED_

#include &lt;iostream&gt;
using namespace std;

double capacity(double R1, double R2);

#endif
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/293675/fehlermeldung</link><generator>RSS for Node</generator><lastBuildDate>Sun, 16 Aug 2026 05:43:40 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/293675.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 08 Oct 2011 10:54:26 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Fehlermeldung on Sat, 08 Oct 2011 10:54:26 GMT]]></title><description><![CDATA[<p>Hallo! Ich hab hier eine kleines Programm geschreiben, das die Kapazität eines Kugelkondensator <a href="http://berechnet.Es" rel="nofollow">berechnet.Es</a> teil sich auf in eine main, capacity.cpp und eine Headerdatei capacity.h. Wenn ich die Datei capacity kompeliere kommt folgende Fehlermeldumg [Linker error] undefined reference to'WinMain@16', Id returned 1 exit status...Kann mir mal jemand weiterhelfen? Vielen Dank im voraus! Anbei sind der Quellcode angehängt.</p>
<p>capacity.cpp</p>
<pre><code class="language-cpp">#include&lt;iostream&gt;
#include&lt;cmath&gt;
#include&quot;capacity.h&quot;

using namespace std;

double capacity (double R1, double R2)
{
       double capacity=0.0;
       cout&lt;&lt;&quot;R1,R2&quot;&lt;&lt;endl;
       cin&gt;&gt;R1&gt;&gt;R2;

if(R1&gt;=R2||R1&lt;=0||R2&lt;=0)
{
   return -1;
}
else
{
    capacity=4*3.14*8.8543*pow((float)10,-12)*R1*R2/(R2-R1);
    return capacity;
} 
}
</code></pre>
<p>main.cpp</p>
<pre><code class="language-cpp">#include&lt;iostream&gt;
#include &quot;capacity.h&quot;

using namespace std;

int main()
{
    double capacity=0.0;
    double R1=0.0;
    double R2=0.0;

    return 0;
}
</code></pre>
<p>capacity.h</p>
<pre><code class="language-cpp">#ifndef _CAPACITY_H_INCLUDED_
#define _CAPACITY_H_INCLUDED_

#include &lt;iostream&gt;
using namespace std;

double capacity(double R1, double R2);

#endif
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/2128813</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2128813</guid><dc:creator><![CDATA[Reeko25]]></dc:creator><pubDate>Sat, 08 Oct 2011 10:54:26 GMT</pubDate></item><item><title><![CDATA[Reply to Fehlermeldung on Sat, 08 Oct 2011 11:05:25 GMT]]></title><description><![CDATA[<p>Du versuchst anscheinend ein komplettes Programm aus der capacity.cpp zu machen. Einfach nur kompilieren reicht. Die Objektdateien die aus der main.cpp und capacity.cpp erzeugt werden, die schmeißt du dann dem Linker hin, der daraus ein komplettes Programm machen kann und die main aus der main.cpp nimmt. Außerdem klingt WinMain danach, als hättest du irgendwas falsch eingestellt.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2128820</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2128820</guid><dc:creator><![CDATA[SeppJ]]></dc:creator><pubDate>Sat, 08 Oct 2011 11:05:25 GMT</pubDate></item><item><title><![CDATA[Reply to Fehlermeldung on Sat, 08 Oct 2011 11:08:20 GMT]]></title><description><![CDATA[<p>Was könnte ich denn falsch eingestellt haben?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2128822</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2128822</guid><dc:creator><![CDATA[Reeko25]]></dc:creator><pubDate>Sat, 08 Oct 2011 11:08:20 GMT</pubDate></item><item><title><![CDATA[Reply to Fehlermeldung on Sat, 08 Oct 2011 11:19:07 GMT]]></title><description><![CDATA[<p>Reeko25 schrieb:</p>
<blockquote>
<p>Was könnte ich denn falsch eingestellt haben?</p>
</blockquote>
<p>Vermutlich machst du ein Windowsprogramm, obwohl du ein Konsolenprogramm möchtest. Aber mit VS, welches du vermutlich benutzt, kenne ich mich nicht aus und kann nicht sagen, wie das exakt heißt und wo es zu finden ist. Das muss jemand anderes beantworten.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2128835</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2128835</guid><dc:creator><![CDATA[SeppJ]]></dc:creator><pubDate>Sat, 08 Oct 2011 11:19:07 GMT</pubDate></item><item><title><![CDATA[Reply to Fehlermeldung on Sat, 08 Oct 2011 11:36:40 GMT]]></title><description><![CDATA[<p>Bei VS:<br />
Projekt -&gt; <em>Projektname</em>-Eigenschaften... -&gt; Konfigurationseigenschaften -&gt; Linker -&gt; System -&gt; SubSystem -&gt; Konsole (/SUBSYSTEM:CONSOLE)</p>
<p>Bitte auf Sig. schauen <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="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2128843</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2128843</guid><dc:creator><![CDATA[Jonas OSDever]]></dc:creator><pubDate>Sat, 08 Oct 2011 11:36:40 GMT</pubDate></item><item><title><![CDATA[Reply to Fehlermeldung on Sat, 08 Oct 2011 11:44:32 GMT]]></title><description><![CDATA[<p>ich benutze Dev++. kann mir da jemand helfen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2128848</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2128848</guid><dc:creator><![CDATA[Reeko25]]></dc:creator><pubDate>Sat, 08 Oct 2011 11:44:32 GMT</pubDate></item></channel></rss>