No wstawiłem do klawiatura.c :
#include "moje_definicje.h"
chyba że miałem wkleić :
język c
Musisz się zalogować, aby zobaczyć kod źródłowy. Tylko zalogowani użytkownicy mogą widzieć kod.
Usunąłem z main.c i mam coś takiego:
Kod:
**** Build of configuration Release for project regulator temp ****
make all
Building file: ../klawiatura.c
Invoking: AVR Compiler
avr-gcc -Wall -Os -fpack-struct -fshort-enums -std=gnu99 -funsigned-char -funsigned-bitfields -mmcu=atmega16 -DF_CPU=8000000UL -MMD -MP -MF"klawiatura.d" -MT"klawiatura.d" -c -o"klawiatura.o" "../klawiatura.c"
In file included from ../klawiatura.c:3:
../moje_definicje.h:11: error: multiple storage classes in declaration specifiers
../moje_definicje.h:12: error: multiple storage classes in declaration specifiers
../moje_definicje.h:13: error: multiple storage classes in declaration specifiers
In file included from ../klawiatura.c:4:
../klawiatura.h:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'przycisk_wcisniety'
../klawiatura.h:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'flaga_klaw'
../klawiatura.h:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ADC_pomiar'
../klawiatura.h:13: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'rozpisz_klawisze'
../klawiatura.c:7: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'przycisk_wcisniety'
../klawiatura.c:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'flaga_klaw'
../klawiatura.c:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ADC_pomiar'
../klawiatura.c:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'rozpisz_klawisze'
../klawiatura.c: In function '__vector_14':
../klawiatura.c:64: error: 'flaga_klaw' undeclared (first use in this function)
../klawiatura.c:64: error: (Each undeclared identifier is reported only once
../klawiatura.c:64: error: for each function it appears in.)
../klawiatura.c:66: error: 'ADC_pomiar' undeclared (first use in this function)
make: *** [klawiatura.o] Error 1