Forum: Compiler & IDEs Problem mit Asuro


von Josip P. (zipzip)


Lesenswert?

Ich habe heute um die Mittagszeit meinen Asuro fertiggebaut und sitze 
immer noch vorm Pc und krieg kein C-Programm zum laufen.
Der Code schient mir richtig dennoch bekomme ich beim kompilieren immer 
dieselbe Fehlermeldung.
Irgendwer ne idee?
Mfg
1
#include “asuro.h”
2
int main(void) {
3
Init();
4
MotorDir(FWD,FWD);
5
MotorSpeed(150,150);
6
while(1); // Endlosschleife
7
return 0;
8
}

Und hier die Fehlermeldung:

> "make.exe" all
set -e; avr-gcc -MM -mmcu=atmega8 -I. -g -Os -funsigned-char 
-funsigned-bitfields -fpack-struct -fshort-enums -Wall 
-Wstrict-prototypes -Wa,-ahlms=test.lst test.c \
  | sed 's,\(.*\)\.o[ :]*,\1.o \1.d : ,g' > test.d; \
  [ -s test.d ] || rm -f test.d
test.c:1:10: error: #include expects "FILENAME" or <FILENAME>
set -e; avr-gcc -MM -mmcu=atmega8 -I. -g -Os -funsigned-char 
-funsigned-bitfields -fpack-struct -fshort-enums -Wall 
-Wstrict-prototypes -Wa,-ahlms=test.lst test.c \
  | sed 's,\(.*\)\.o[ :]*,\1.o \1.d : ,g' > test.d; \
  [ -s test.d ] || rm -f test.d
test.c:1:10: error: #include expects "FILENAME" or <FILENAME>
-------- begin --------
avr-gcc --version
avr-gcc (WinAVR 20081205) 4.3.2
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is 
NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR 
PURPOSE.

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
test.c:1:10: error: #include expects "FILENAME" or <FILENAME>
test.c: In function 'main':
test.c:3: warning: implicit declaration of function 'Init'
test.c:4: warning: implicit declaration of function 'MotorDir'
test.c:4: error: 'FWD' undeclared (first use in this function)
test.c:4: error: (Each undeclared identifier is reported only once
test.c:4: error: for each function it appears in.)
test.c:5: warning: implicit declaration of function 'MotorSpeed'
make.exe: *** [test.o] Error 1

> Process Exit Code: 2
> Time Taken: 00:01

von Gast (Gast)


Lesenswert?

test.c:1:10: error: #include expects "FILENAME" or <FILENAME>

von yalu (Gast)


Lesenswert?

Lass mich raten: Du hast den Quelltext mit Word oder einem anderen
zu sehr mitdenkenden Textverarbeitungsprogramm eingegeben :)

Vergleiche die fogenden Zeilen:
1
#include “asuro.h”  // falsch
2
#include "asuro.h"  // richtig

von Josip P. (zipzip)


Lesenswert?

Ne war programmers notepad 2
Awa ja die Anführungzeichen warns...
Hab die anführungszeichen aber mit Shift + 2 gemacht...
Danke an Alle

Bitte melde dich an um einen Beitrag zu schreiben. Anmeldung ist kostenlos und dauert nur eine Minute.
Bestehender Account
Schon ein Account bei Google/GoogleMail? Keine Anmeldung erforderlich!
Mit Google-Account einloggen
Noch kein Account? Hier anmelden.