<?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[missing function header (old-style formal list?)]]></title><description><![CDATA[<p>Hi zusammen</p>
<p>Ich hab ein kleines Problem, bei dem mir die MSDN nicht weiterhelfen konnte.</p>
<p>Ich hab eine Funktion void WriteRawHeader(..)<br />
Die Funktion wird vor dem main{} definiert und im main verwendet:</p>
<p>FUnktionsdefinition:</p>
<pre><code class="language-cpp">void WriteRawHeader(ofstream&amp; oStreamRawLog, int &amp;minDelay, int &amp;maxDelay,string &amp;expBitError,string&amp; logFileComment,string&amp; computerName, string &amp;userName, int &amp;comPort, int &amp;baudRate, const string &amp;version,string &amp;logFileTimeStamp);
</code></pre>
<p>Funktion:</p>
<pre><code class="language-cpp">void WriteRawHeader(ofstream&amp; oStreamRawLog, int &amp;minDelay, int &amp;maxDelay,string &amp;expBitError,string&amp; logFileComment,string&amp; computerName, string &amp;userName, int &amp;comPort, int &amp;baudRate, string &amp;version,string &amp;logFileTimeStamp);
{//Compiler sagt, das Der Fehler hier liegt	
	//Create Raw Log File Header
	oStreamRawLog   &lt;&lt; &quot;String Comment:          &quot;   &lt;&lt; logFileComment &lt;&lt;&quot;\n&quot; &lt;&lt; endl;
	oStreamRawLog   &lt;&lt; &quot;Parameters:            &quot;							  &lt;&lt; endl;
	oStreamRawLog   &lt;&lt; &quot;ComPort:                 &quot;   &lt;&lt; comPort		      &lt;&lt; &quot;\n&quot;
				  &lt;&lt; &quot;Baud Rate:               &quot;     &lt;&lt;  baudRate			  &lt;&lt; &quot;\n&quot;
				  &lt;&lt; &quot;Min Delay:	         &quot;       &lt;&lt;  minDelay			  &lt;&lt; &quot;\n&quot;
				  &lt;&lt; &quot;Max Delay:	         &quot;       &lt;&lt;  maxDelay			  &lt;&lt; &quot;\n&quot;
				  &lt;&lt; &quot;Expected BitError:       &quot;     &lt;&lt;  expBitError		  &lt;&lt; &quot;\n&quot;
				  &lt;&lt; &quot;----------------------------------------&quot;			      &lt;&lt; endl;
	oStreamRawLog &lt;&lt; &quot;Version:                 &quot;     &lt;&lt; version	    		  &lt;&lt; endl;
	oStreamRawLog &lt;&lt; &quot;Operating PC:            &quot;     &lt;&lt; computerName		  &lt;&lt; endl;
	oStreamRawLog &lt;&lt; &quot;Operating User:          &quot;     &lt;&lt; userName			  &lt;&lt; endl;
	oStreamRawLog &lt;&lt; &quot;Start Time:              &quot;     &lt;&lt; logFileTimeStamp  &lt;&lt; endl;
	//First Line
	oStreamRawLog &lt;&lt; &quot;\n\nDate:\t\t\t&quot; &lt;&lt; &quot;Time:      [ms]\t\t&quot; &lt;&lt; &quot;Data Received:\t\t\t&quot; &lt;&lt;&quot;BitErrors:\t\t&quot;&lt;&lt; &quot;Delay:&quot; &lt;&lt; endl;    
	oStreamRawLog.flush();
}
</code></pre>
<p>Verwendet wir Sie so:</p>
<pre><code class="language-cpp">WriteRawHeader(oStreamRawLog, minDelay, maxDelay, expBitError, logFileComment, computerName, userName, comPort, baudRate, version, logFileTimeStamp);
</code></pre>
<p>Nun kompiliert Visual C++ 6.0 nicht mehr. Der Debuger sagt mir folgendes:</p>
<p>E:\Transit_Observer_V1_Extended\main.cpp(434) : error C2447: missing function header (old-style formal list?)</p>
<p>Leider weis ich nicht was das Problem ist.</p>
<p>Ich hoffe ihr könnt mir helfen.<br />
Danke &amp; Gruss</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/278532/missing-function-header-old-style-formal-list</link><generator>RSS for Node</generator><lastBuildDate>Tue, 25 Aug 2026 05:26:47 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/278532.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 08 Dec 2010 14:38:12 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to missing function header (old-style formal list?) on Wed, 08 Dec 2010 14:38:12 GMT]]></title><description><![CDATA[<p>Hi zusammen</p>
<p>Ich hab ein kleines Problem, bei dem mir die MSDN nicht weiterhelfen konnte.</p>
<p>Ich hab eine Funktion void WriteRawHeader(..)<br />
Die Funktion wird vor dem main{} definiert und im main verwendet:</p>
<p>FUnktionsdefinition:</p>
<pre><code class="language-cpp">void WriteRawHeader(ofstream&amp; oStreamRawLog, int &amp;minDelay, int &amp;maxDelay,string &amp;expBitError,string&amp; logFileComment,string&amp; computerName, string &amp;userName, int &amp;comPort, int &amp;baudRate, const string &amp;version,string &amp;logFileTimeStamp);
</code></pre>
<p>Funktion:</p>
<pre><code class="language-cpp">void WriteRawHeader(ofstream&amp; oStreamRawLog, int &amp;minDelay, int &amp;maxDelay,string &amp;expBitError,string&amp; logFileComment,string&amp; computerName, string &amp;userName, int &amp;comPort, int &amp;baudRate, string &amp;version,string &amp;logFileTimeStamp);
{//Compiler sagt, das Der Fehler hier liegt	
	//Create Raw Log File Header
	oStreamRawLog   &lt;&lt; &quot;String Comment:          &quot;   &lt;&lt; logFileComment &lt;&lt;&quot;\n&quot; &lt;&lt; endl;
	oStreamRawLog   &lt;&lt; &quot;Parameters:            &quot;							  &lt;&lt; endl;
	oStreamRawLog   &lt;&lt; &quot;ComPort:                 &quot;   &lt;&lt; comPort		      &lt;&lt; &quot;\n&quot;
				  &lt;&lt; &quot;Baud Rate:               &quot;     &lt;&lt;  baudRate			  &lt;&lt; &quot;\n&quot;
				  &lt;&lt; &quot;Min Delay:	         &quot;       &lt;&lt;  minDelay			  &lt;&lt; &quot;\n&quot;
				  &lt;&lt; &quot;Max Delay:	         &quot;       &lt;&lt;  maxDelay			  &lt;&lt; &quot;\n&quot;
				  &lt;&lt; &quot;Expected BitError:       &quot;     &lt;&lt;  expBitError		  &lt;&lt; &quot;\n&quot;
				  &lt;&lt; &quot;----------------------------------------&quot;			      &lt;&lt; endl;
	oStreamRawLog &lt;&lt; &quot;Version:                 &quot;     &lt;&lt; version	    		  &lt;&lt; endl;
	oStreamRawLog &lt;&lt; &quot;Operating PC:            &quot;     &lt;&lt; computerName		  &lt;&lt; endl;
	oStreamRawLog &lt;&lt; &quot;Operating User:          &quot;     &lt;&lt; userName			  &lt;&lt; endl;
	oStreamRawLog &lt;&lt; &quot;Start Time:              &quot;     &lt;&lt; logFileTimeStamp  &lt;&lt; endl;
	//First Line
	oStreamRawLog &lt;&lt; &quot;\n\nDate:\t\t\t&quot; &lt;&lt; &quot;Time:      [ms]\t\t&quot; &lt;&lt; &quot;Data Received:\t\t\t&quot; &lt;&lt;&quot;BitErrors:\t\t&quot;&lt;&lt; &quot;Delay:&quot; &lt;&lt; endl;    
	oStreamRawLog.flush();
}
</code></pre>
<p>Verwendet wir Sie so:</p>
<pre><code class="language-cpp">WriteRawHeader(oStreamRawLog, minDelay, maxDelay, expBitError, logFileComment, computerName, userName, comPort, baudRate, version, logFileTimeStamp);
</code></pre>
<p>Nun kompiliert Visual C++ 6.0 nicht mehr. Der Debuger sagt mir folgendes:</p>
<p>E:\Transit_Observer_V1_Extended\main.cpp(434) : error C2447: missing function header (old-style formal list?)</p>
<p>Leider weis ich nicht was das Problem ist.</p>
<p>Ich hoffe ihr könnt mir helfen.<br />
Danke &amp; Gruss</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1991494</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1991494</guid><dc:creator><![CDATA[TTS]]></dc:creator><pubDate>Wed, 08 Dec 2010 14:38:12 GMT</pubDate></item><item><title><![CDATA[Reply to missing function header (old-style formal list?) on Wed, 08 Dec 2010 14:42:26 GMT]]></title><description><![CDATA[<p>Mach das Semikolon nach dem Funktionskopf weg.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1991497</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1991497</guid><dc:creator><![CDATA[SeppJ]]></dc:creator><pubDate>Wed, 08 Dec 2010 14:42:26 GMT</pubDate></item><item><title><![CDATA[Reply to missing function header (old-style formal list?) on Wed, 08 Dec 2010 14:50:16 GMT]]></title><description><![CDATA[<p>SeppJ schrieb:</p>
<blockquote>
<p>Mach das Semikolon nach dem Funktionskopf weg.</p>
</blockquote>
<p>Danke für die schnelle Antwort.<br />
Wie blöd von mir. Hab das semikolon nicht gesehen. Nachdem ich es geändert habe kommen 3 Linker Errors <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /></p>
<p>--------------------Configuration: Transit_Observer - Win32 Debug--------------------<br />
Compiling...<br />
main.cpp<br />
Linking...<br />
main.obj : error LNK2001: unresolved external symbol &quot;void __cdecl WriteErrorHeader(class std::basic_ofstream&lt;char,struct std::char_traits&lt;char&gt; &gt; &amp;,int &amp;,int &amp;,class std::basic_string&lt;char,struct std::char_traits&lt;char&gt;,class std::allocator&lt;char&gt; &gt;<br />
&amp;,class std::basic_string&lt;char,struct std::char_traits&lt;char&gt;,class std::allocator&lt;char&gt; &gt; &amp;,class std::basic_string&lt;char,struct std::char_traits&lt;char&gt;,class std::allocator&lt;char&gt; &gt; &amp;,class std::basic_string&lt;char,struct std::char_traits&lt;char&gt;,class st<br />
d::allocator&lt;char&gt; &gt; &amp;,int &amp;,int &amp;,class std::basic_string&lt;char,struct std::char_traits&lt;char&gt;,class std::allocator&lt;char&gt; &gt; const &amp;,class std::basic_string&lt;char,struct std::char_traits&lt;char&gt;,class std::allocator&lt;char&gt; &gt; &amp;)&quot; (?WriteErrorHeader@@YAXAAV<br />
?<span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>b</mi><mi>a</mi><mi>s</mi><mi>i</mi><mi>c</mi><mi mathvariant="normal">_</mi><mi>o</mi><mi>f</mi><mi>s</mi><mi>t</mi><mi>r</mi><mi>e</mi><mi>a</mi><mi>m</mi><mi mathvariant="normal">@</mi><mi>D</mi><mi>U</mi><mo>?</mo></mrow><annotation encoding="application/x-tex">basic\_ofstream@DU?</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.69444em;"></span><span class="strut bottom" style="height:1.00444em;vertical-align:-0.31em;"></span><span class="base textstyle uncramped"><span class="mord mathit">b</span><span class="mord mathit">a</span><span class="mord mathit">s</span><span class="mord mathit">i</span><span class="mord mathit">c</span><span class="mord mathrm" style="margin-right:0.02778em;">_</span><span class="mord mathit">o</span><span class="mord mathit" style="margin-right:0.10764em;">f</span><span class="mord mathit">s</span><span class="mord mathit">t</span><span class="mord mathit" style="margin-right:0.02778em;">r</span><span class="mord mathit">e</span><span class="mord mathit">a</span><span class="mord mathit">m</span><span class="mord mathrm">@</span><span class="mord mathit" style="margin-right:0.02778em;">D</span><span class="mord mathit" style="margin-right:0.10903em;">U</span><span class="mclose">?</span></span></span></span>char_traits@D@std@@@std@@AAH1AAV?<span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>b</mi><mi>a</mi><mi>s</mi><mi>i</mi><mi>c</mi><mi mathvariant="normal">_</mi><mi>s</mi><mi>t</mi><mi>r</mi><mi>i</mi><mi>n</mi><mi>g</mi><mi mathvariant="normal">@</mi><mi>D</mi><mi>U</mi><mo>?</mo></mrow><annotation encoding="application/x-tex">basic\_string@DU?</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.69444em;"></span><span class="strut bottom" style="height:1.00444em;vertical-align:-0.31em;"></span><span class="base textstyle uncramped"><span class="mord mathit">b</span><span class="mord mathit">a</span><span class="mord mathit">s</span><span class="mord mathit">i</span><span class="mord mathit">c</span><span class="mord mathrm" style="margin-right:0.02778em;">_</span><span class="mord mathit">s</span><span class="mord mathit">t</span><span class="mord mathit" style="margin-right:0.02778em;">r</span><span class="mord mathit">i</span><span class="mord mathit">n</span><span class="mord mathit" style="margin-right:0.03588em;">g</span><span class="mord mathrm">@</span><span class="mord mathit" style="margin-right:0.02778em;">D</span><span class="mord mathit" style="margin-right:0.10903em;">U</span><span class="mclose">?</span></span></span></span>char_traits@D@std@@V?allocator@D@2@@2@22211ABV32@2@Z)  
main.obj : error LNK2001: unresolved external symbol "void \_\_cdecl WriteRawHeader(class std::basic\_ofstream<char,struct std::char\_traits<char> > &,int &,int &,class std::basic\_string<char,struct std::char_traits<char>,class std::allocator<char> > &,  
class std::basic\_string<char,struct std::char\_traits<char>,class std::allocator<char> > &,class std::basic\_string<char,struct std::char\_traits<char>,class std::allocator<char> > &,class std::basic\_string<char,struct std::char\_traits<char>,class std:  
:allocator<char> > &,int &,int &,class std::basic\_string<char,struct std::char\_traits<char>,class std::allocator<char> > const &,class std::basic\_string<char,struct std::char\_traits<char>,class std::allocator<char> > &)" (?WriteRawHeader@@YAXAAV?ba<br />
sic_ofstream@DU?<span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>c</mi><mi>h</mi><mi>a</mi><mi>r</mi><mi mathvariant="normal">_</mi><mi>t</mi><mi>r</mi><mi>a</mi><mi>i</mi><mi>t</mi><mi>s</mi><mi mathvariant="normal">@</mi><mi>D</mi><mi mathvariant="normal">@</mi><mi>s</mi><mi>t</mi><mi>d</mi><mi mathvariant="normal">@</mi><mi mathvariant="normal">@</mi><mi mathvariant="normal">@</mi><mi>s</mi><mi>t</mi><mi>d</mi><mi mathvariant="normal">@</mi><mi mathvariant="normal">@</mi><mi>A</mi><mi>A</mi><mi>H</mi><mn>1</mn><mi>A</mi><mi>A</mi><mi>V</mi><mo>?</mo></mrow><annotation encoding="application/x-tex">char\_traits@D@std@@@std@@AAH1AAV?</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.69444em;"></span><span class="strut bottom" style="height:1.00444em;vertical-align:-0.31em;"></span><span class="base textstyle uncramped"><span class="mord mathit">c</span><span class="mord mathit">h</span><span class="mord mathit">a</span><span class="mord mathit" style="margin-right:0.02778em;">r</span><span class="mord mathrm" style="margin-right:0.02778em;">_</span><span class="mord mathit">t</span><span class="mord mathit" style="margin-right:0.02778em;">r</span><span class="mord mathit">a</span><span class="mord mathit">i</span><span class="mord mathit">t</span><span class="mord mathit">s</span><span class="mord mathrm">@</span><span class="mord mathit" style="margin-right:0.02778em;">D</span><span class="mord mathrm">@</span><span class="mord mathit">s</span><span class="mord mathit">t</span><span class="mord mathit">d</span><span class="mord mathrm">@</span><span class="mord mathrm">@</span><span class="mord mathrm">@</span><span class="mord mathit">s</span><span class="mord mathit">t</span><span class="mord mathit">d</span><span class="mord mathrm">@</span><span class="mord mathrm">@</span><span class="mord mathit">A</span><span class="mord mathit">A</span><span class="mord mathit" style="margin-right:0.08125em;">H</span><span class="mord mathrm">1</span><span class="mord mathit">A</span><span class="mord mathit">A</span><span class="mord mathit" style="margin-right:0.22222em;">V</span><span class="mclose">?</span></span></span></span>basic_string@DU?<span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>c</mi><mi>h</mi><mi>a</mi><mi>r</mi><mi mathvariant="normal">_</mi><mi>t</mi><mi>r</mi><mi>a</mi><mi>i</mi><mi>t</mi><mi>s</mi><mi mathvariant="normal">@</mi><mi>D</mi><mi mathvariant="normal">@</mi><mi>s</mi><mi>t</mi><mi>d</mi><mi mathvariant="normal">@</mi><mi mathvariant="normal">@</mi><mi>V</mi><mo>?</mo></mrow><annotation encoding="application/x-tex">char\_traits@D@std@@V?</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.69444em;"></span><span class="strut bottom" style="height:1.00444em;vertical-align:-0.31em;"></span><span class="base textstyle uncramped"><span class="mord mathit">c</span><span class="mord mathit">h</span><span class="mord mathit">a</span><span class="mord mathit" style="margin-right:0.02778em;">r</span><span class="mord mathrm" style="margin-right:0.02778em;">_</span><span class="mord mathit">t</span><span class="mord mathit" style="margin-right:0.02778em;">r</span><span class="mord mathit">a</span><span class="mord mathit">i</span><span class="mord mathit">t</span><span class="mord mathit">s</span><span class="mord mathrm">@</span><span class="mord mathit" style="margin-right:0.02778em;">D</span><span class="mord mathrm">@</span><span class="mord mathit">s</span><span class="mord mathit">t</span><span class="mord mathit">d</span><span class="mord mathrm">@</span><span class="mord mathrm">@</span><span class="mord mathit" style="margin-right:0.22222em;">V</span><span class="mclose">?</span></span></span></span>allocator@D@2@@2@22211ABV32@2@Z)<br />
Debug/Transit_Observer.exe : fatal error LNK1120: 2 unresolved externals<br />
Error executing link.exe.<br />
Creating browse info file...</p>
<p>Transit_Observer.exe - 3 error(s), 0 warning(s)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1991501</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1991501</guid><dc:creator><![CDATA[TTS]]></dc:creator><pubDate>Wed, 08 Dec 2010 14:50:16 GMT</pubDate></item><item><title><![CDATA[Reply to missing function header (old-style formal list?) on Wed, 08 Dec 2010 15:08:45 GMT]]></title><description><![CDATA[<p>Hat sich erledigt</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1991511</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1991511</guid><dc:creator><![CDATA[TTS]]></dc:creator><pubDate>Wed, 08 Dec 2010 15:08:45 GMT</pubDate></item></channel></rss>