<?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[headerdatei]]></title><description><![CDATA[<p>hallo!</p>
<p>versuche einige funktionen in eine headerdatei auszulagern</p>
<p>hab eine functions.cpp mit den ausprogrammierten funktionen.<br />
ganz oben steht dort auch # include &quot;functions.h&quot;</p>
<p>in der functions.h sind die prototypen.</p>
<p>wenn ich nun # include &quot;functions.h&quot; in das main-Programm schreibe, gibt der Compiler Fehler wie Semikolon danach oder unerwartetes Dateiende.<br />
Wenn ich die include weggebe, gibts keine fehler.</p>
<p>Kann mir jemand helfen?<br />
Bitte</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/129236/headerdatei</link><generator>RSS for Node</generator><lastBuildDate>Wed, 26 Aug 2026 04:22:30 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/129236.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 11 Dec 2005 18:43:44 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to headerdatei on Sun, 11 Dec 2005 18:43:44 GMT]]></title><description><![CDATA[<p>hallo!</p>
<p>versuche einige funktionen in eine headerdatei auszulagern</p>
<p>hab eine functions.cpp mit den ausprogrammierten funktionen.<br />
ganz oben steht dort auch # include &quot;functions.h&quot;</p>
<p>in der functions.h sind die prototypen.</p>
<p>wenn ich nun # include &quot;functions.h&quot; in das main-Programm schreibe, gibt der Compiler Fehler wie Semikolon danach oder unerwartetes Dateiende.<br />
Wenn ich die include weggebe, gibts keine fehler.</p>
<p>Kann mir jemand helfen?<br />
Bitte</p>
]]></description><link>https://www.c-plusplus.net/forum/post/939745</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/939745</guid><dc:creator><![CDATA[holh]]></dc:creator><pubDate>Sun, 11 Dec 2005 18:43:44 GMT</pubDate></item><item><title><![CDATA[Reply to headerdatei on Sun, 11 Dec 2005 18:57:32 GMT]]></title><description><![CDATA[<p>Du musst deinem Linker sag das er den Code zu den Prototypen aus functions.h in functions.cpp findet. Schau einfach mal in deiner IDE nach Projektzeugs und füg dort alle gebrauchten Dateien ein, oder mit nem Makefile.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/939755</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/939755</guid><dc:creator><![CDATA[effe_eichelt]]></dc:creator><pubDate>Sun, 11 Dec 2005 18:57:32 GMT</pubDate></item><item><title><![CDATA[Reply to headerdatei on Sun, 11 Dec 2005 19:04:05 GMT]]></title><description><![CDATA[<p>meinst du z.B. bei VC 6.0 unter Projekte-&gt;Dem Projekt hinzufügen-&gt;Dateien und dann header und quelldatei auswählen?</p>
<p>Das hab ich natürlich getan, trotzdem diese Fehler</p>
]]></description><link>https://www.c-plusplus.net/forum/post/939760</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/939760</guid><dc:creator><![CDATA[holh]]></dc:creator><pubDate>Sun, 11 Dec 2005 19:04:05 GMT</pubDate></item><item><title><![CDATA[Reply to headerdatei on Mon, 12 Dec 2005 10:37:43 GMT]]></title><description><![CDATA[<p>Hallo,<br />
poste doch bitte mal die genaue Fehlermeldung.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/940037</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/940037</guid><dc:creator><![CDATA[HumeSikkins]]></dc:creator><pubDate>Mon, 12 Dec 2005 10:37:43 GMT</pubDate></item><item><title><![CDATA[Reply to headerdatei on Mon, 12 Dec 2005 17:16:49 GMT]]></title><description><![CDATA[<p>das sind die Fehlermeldungen, wenn ich die include so angeordnet hab</p>
<pre><code># include &lt;iostream&gt;
using namespace std;

# include &quot;midwrt.h&quot;
# include &quot;Umlaute.h&quot;
# include &quot;functions.h&quot;
</code></pre>
<blockquote>
<p>warning C4518: 'void ' : Unerwartete(r) Speicherklassen- oder Typbezeichner; wird ignoriert<br />
: error C2146: Syntaxfehler : Fehlendes ';' vor Bezeichner 'search'<br />
: fatal error C1004: Unerwartetes Dateiende gefunden</p>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/post/940411</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/940411</guid><dc:creator><![CDATA[holh]]></dc:creator><pubDate>Mon, 12 Dec 2005 17:16:49 GMT</pubDate></item><item><title><![CDATA[Reply to headerdatei on Mon, 12 Dec 2005 17:29:12 GMT]]></title><description><![CDATA[<p>Was für Fehler kommen denn, wenn du die includes umstellst? Es könnte sein, daß der Compiler durch einen Fehler weiter oben etwas verwirrt ist (z.B. eine Klassendeklaration ohne abschließendes Semikolen).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/940419</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/940419</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Mon, 12 Dec 2005 17:29:12 GMT</pubDate></item><item><title><![CDATA[Reply to headerdatei on Mon, 12 Dec 2005 17:36:16 GMT]]></title><description><![CDATA[<p>mit der include fängts an:</p>
<pre><code>//Präprozessordirektiven//
# include &lt;iostream&gt;

using namespace std;

# include &lt;ctype.h&gt;
# include &lt;conio.h&gt;

# include &quot;midwrt.h&quot;
# include &quot;Umlaute.h&quot;
# include &quot;functions.h&quot;

///GLOBALE VARIABLEN////
class Knoten *root;

//////////PROTOTYPEN//////////

void search();
void input();

int main()
{
...
}
</code></pre>
<p>wenn ichs so stelle:</p>
<pre><code># include &lt;iostream&gt;

using namespace std;

# include &lt;ctype.h&gt;
# include &lt;conio.h&gt;

# include &quot;functions.h&quot;
# include &quot;midwrt.h&quot;
# include &quot;Umlaute.h&quot;
</code></pre>
<p>kommen die Fehler(werden auf midwrt.h zurückgeführt):</p>
<blockquote>
<p>: warning C4518: 'void ' : Unerwartete(r) Speicherklassen- oder Typbezeichner; wird ignoriert<br />
: error C2146: Syntaxfehler : Fehlendes ';' vor Bezeichner 'midwrtstd'<br />
: fatal error C1004: Unerwartetes Dateiende gefunden</p>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/post/940420</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/940420</guid><dc:creator><![CDATA[holh]]></dc:creator><pubDate>Mon, 12 Dec 2005 17:36:16 GMT</pubDate></item><item><title><![CDATA[Reply to headerdatei on Mon, 12 Dec 2005 20:02:41 GMT]]></title><description><![CDATA[<p>hat das noch niemand gehabt?</p>
<p>Muss es entweder HEUTE noch zusammenbringen, oder es ist hinfällig</p>
<p>Bitte daher um Hilfe, falls irgendjemand auch nur ansatzweise Lösungsvorschläge bieten könnte</p>
<p>Danke</p>
]]></description><link>https://www.c-plusplus.net/forum/post/940595</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/940595</guid><dc:creator><![CDATA[holh]]></dc:creator><pubDate>Mon, 12 Dec 2005 20:02:41 GMT</pubDate></item><item><title><![CDATA[Reply to headerdatei on Mon, 12 Dec 2005 20:28:52 GMT]]></title><description><![CDATA[<p>Mamal #include &quot;stdafx.h&quot; in jede .cpp Datei, vll hilfts, hab ich grad in dem <a href="http://www.c-plusplus.net/forum/viewtopic-var-t-is-129341-and-postdays-is-0-and-postorder-is-asc-and-start-is-0.html" rel="nofollow">Thema</a> gelesen.</p>
<p>Da gabs die Fehler &quot;ähnlich&quot;.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/940617</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/940617</guid><dc:creator><![CDATA[effe_eichelt]]></dc:creator><pubDate>Mon, 12 Dec 2005 20:28:52 GMT</pubDate></item></channel></rss>