-
Hi,
@nighthawk91 du verwendest eine alte WinAVR Version. Damit das mit der Asuro Lib V2.6.1 funktioniert, mußt du hinter den folgenden Zeilen in der asuro.h
Code:
#include <avr/io.h>
#include <avr/interrupt.h>
#include <stdlib.h>
die folgende Zeile hinzufügen.
Code:
#include <signal.h>
-
nachdem ich es geändert habe kommt diese fehlermeldung:
Code:
C:\Dokumente und Einstellungen\...\ASURO_src\FirstTry>make all
set -e; avr-gcc -MM -mmcu=atmega8 -I. -g -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-ahlms=asuro.lst asuro.c \
| sed 's,\(.*\)\.o[ :]*,\1.o \1.d : ,g' > asuro.d; \
[ -s asuro.d ] || rm -f asuro.d
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
-------- begin --------
avr-gcc --version
avr-gcc (GCC) 3.3.1
Copyright (C) 2003 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
In file included from test.c:1:
asuro.h:146:21: signal.h: No such file or directory
test.c:9:2: warning: no newline at end of file
make: *** [test.o] Error 1
> Process Exit Code: 2
asuro.h habe ich von
Code:
#include <avr/io.h>
#include <avr/interrupt.h>
#include <stdlib.h>
in
Code:
#include <avr/io.h>
#include <avr/interrupt.h>
#include <stdlib.h>
#include <signal.h>
abgeändert
-
also das bedeutet dass er die datei signal.h nicht findet. irgend was ist da mega faul...
ausserdem ist da ne warning, dass du hinter das letzte zeichen des textes ein newline (Enter) setzen sollst.
such mal nach der datei signal.h.
-
die datei signal.h finde ich nicht
-
Hi,
Sorry, Fehler meinerseits
Code:
#include <avr/signal.h>
so wäre es richtig.
-
vielen dank, jetzt funktioniert es