<?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[Hilfestellung zu einem programmbefehl!]]></title><description><![CDATA[<p>ich bin nocht relativ neu beim programmieren und würde mich über eine hilfestellung freuen denn ich hab den hobbyroboter ASURO gekauft und dies um mich ein bissl in der programmiersprache einzufinden doch es ist mir nicht gelungen den fehler selbst zu beheben</p>
<p>das programm --------</p>
<p>#include &quot;asuro.h&quot;<br />
#define STOP 200<br />
int main(void)<br />
{<br />
unsigned int lineData[2];<br />
unsigned char running = TRUE;<br />
Init();<br />
MotorDir(FWD,FWD);<br />
MotorSpeed(255,255);<br />
do {<br />
LineData(lineData);<br />
if ((lineData[0]&lt;STOP) &amp;&amp; (lineData[1]&lt;STOP)) {<br />
MotorSpeed(0,0);<br />
BackLED(ON,ON);<br />
running=false;<br />
}<br />
} while(running);<br />
while(1);<br />
return(0);<br />
}</p>
<p>-------<br />
die fehlermeldung:</p>
<p>avr-gcc -c -mmcu=atmega8 -I. -g -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-ahlms=test.lst test.c -o test.o<br />
test.c: In function <code>main': **test.c:15: error:</code>false' undeclared (first use in this function)<br />
test.c:15: error: (Each undeclared identifier is reported only once<br />
test.c:15: error: for each function it appears in.)**<br />
make: *** [test.o] Error 1</p>
<p>&gt; Process Exit Code: 2</p>
<p>mfg cout</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/209767/hilfestellung-zu-einem-programmbefehl</link><generator>RSS for Node</generator><lastBuildDate>Tue, 13 Oct 2026 00:21:01 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/209767.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 03 Apr 2008 09:01:38 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Hilfestellung zu einem programmbefehl! on Thu, 03 Apr 2008 09:01:38 GMT]]></title><description><![CDATA[<p>ich bin nocht relativ neu beim programmieren und würde mich über eine hilfestellung freuen denn ich hab den hobbyroboter ASURO gekauft und dies um mich ein bissl in der programmiersprache einzufinden doch es ist mir nicht gelungen den fehler selbst zu beheben</p>
<p>das programm --------</p>
<p>#include &quot;asuro.h&quot;<br />
#define STOP 200<br />
int main(void)<br />
{<br />
unsigned int lineData[2];<br />
unsigned char running = TRUE;<br />
Init();<br />
MotorDir(FWD,FWD);<br />
MotorSpeed(255,255);<br />
do {<br />
LineData(lineData);<br />
if ((lineData[0]&lt;STOP) &amp;&amp; (lineData[1]&lt;STOP)) {<br />
MotorSpeed(0,0);<br />
BackLED(ON,ON);<br />
running=false;<br />
}<br />
} while(running);<br />
while(1);<br />
return(0);<br />
}</p>
<p>-------<br />
die fehlermeldung:</p>
<p>avr-gcc -c -mmcu=atmega8 -I. -g -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-ahlms=test.lst test.c -o test.o<br />
test.c: In function <code>main': **test.c:15: error:</code>false' undeclared (first use in this function)<br />
test.c:15: error: (Each undeclared identifier is reported only once<br />
test.c:15: error: for each function it appears in.)**<br />
make: *** [test.o] Error 1</p>
<p>&gt; Process Exit Code: 2</p>
<p>mfg cout</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1485658</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1485658</guid><dc:creator><![CDATA[Couterfly]]></dc:creator><pubDate>Thu, 03 Apr 2008 09:01:38 GMT</pubDate></item><item><title><![CDATA[Reply to Hilfestellung zu einem programmbefehl! on Thu, 03 Apr 2008 09:02:54 GMT]]></title><description><![CDATA[<p>Da der Compiler nicht bei TRUE meckert, wirst du wohl FALSE nehmen müssen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1485659</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1485659</guid><dc:creator><![CDATA[Fellhuhn]]></dc:creator><pubDate>Thu, 03 Apr 2008 09:02:54 GMT</pubDate></item><item><title><![CDATA[Reply to Hilfestellung zu einem programmbefehl! on Thu, 03 Apr 2008 09:13:26 GMT]]></title><description><![CDATA[<p>...oder <code>&lt;stdbool.h&gt;</code> inkludieren und <code>true</code> / <code>false</code> verwenden.</p>
<p>Verwende das nächste mal bitte cpp-Tags - nicht dass ich versucht hätte, den Code zu lesen, aber es sieht einfach hässlich aus. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /></p>
<p>cheers, Swordfish</p>
<p>BTW: Das gehört ins C-Forum...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1485666</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1485666</guid><dc:creator><![CDATA[Swordfish]]></dc:creator><pubDate>Thu, 03 Apr 2008 09:13:26 GMT</pubDate></item><item><title><![CDATA[Reply to Hilfestellung zu einem programmbefehl! on Thu, 03 Apr 2008 09:28:35 GMT]]></title><description><![CDATA[<p>Danke für die hilfestellung</p>
<p>BTW: Das gehört ins C-Forum... hm warum hab ich dann bei PN im tool c++ stehen daher bin ich davon ausgegangen das ich c++ programmiere.</p>
<p>mfg cout</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1485674</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1485674</guid><dc:creator><![CDATA[Couterfly]]></dc:creator><pubDate>Thu, 03 Apr 2008 09:28:35 GMT</pubDate></item><item><title><![CDATA[Reply to Hilfestellung zu einem programmbefehl! on Thu, 03 Apr 2008 10:03:51 GMT]]></title><description><![CDATA[<p>Ich hab' zwar keine Ahnung was PN oder das &quot;Tool&quot; davon ist, aber:</p>
<p>Counterfly schrieb:</p>
<blockquote>
<p>avr-gcc -c -mmcu=atmega8 -I. -g -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-ahlms=test.lst test**.c** -o test.o</p>
</blockquote>
<p>.c Dateien gibt der gcc IMHO an den cc (C Compiler) weiter. Weiters würde man sich das <code>void</code> in der Parameterliste von <code>main( )</code> in C++ sparen und ein C++ Compiler hätte keine Problem mit den in C++ eingebauten Schlüsselwörtern <code>true</code> und <code>false</code> .</p>
<p>cheers, Swordfish</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1485687</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1485687</guid><dc:creator><![CDATA[Swordfish]]></dc:creator><pubDate>Thu, 03 Apr 2008 10:03:51 GMT</pubDate></item></channel></rss>