اینم خرجی ولی شما اینو به من بگی مشکلم حل می شه
وقتی من یه فایل رو اینکلود کردم بالای برنامه بعد پایین اون هر فایلی رو اینکلود کنم باید بتونم از محتوییات فایل بالایی استفاده کنم نه؟ من فکر کنم این قابلیت یه جایی باید فعال یا غیر فعال بشه
hadi@jooyeshgar0 ~/Projects/avrlib/examples/rprintf $ make
avr-gcc -c -g -Os -Wall -Wstrict-prototypes -I/home/hadi/Projects/avrlib -Wa,-ahlms=rprintftest.lst -mmcu=atmega163 -I. rprintftest.c -o rprintftest.o
rprintftest.c: In function ‘rprintfTest’:
rprintftest.c:102: warning: pointer targets in passing argument 1 of ‘rprintfStr’ differ in signedness
rprintftest.c:108: warning: pointer targets in passing argument 1 of ‘rprintfStrLen’ differ in signedness
avr-gcc -c -g -Os -Wall -Wstrict-prototypes -I/home/hadi/Projects/avrlib -Wa,-ahlms=/home/hadi/Projects/avrlib/buffer.lst -mmcu=atmega163 -I. /home/hadi/Projects/avrlib/buffer.c -o /home/hadi/Projects/avrlib/buffer.o
avr-gcc -c -g -Os -Wall -Wstrict-prototypes -I/home/hadi/Projects/avrlib -Wa,-ahlms=/home/hadi/Projects/avrlib/uart.lst -mmcu=atmega163 -I. /home/hadi/Projects/avrlib/uart.c -o /home/hadi/Projects/avrlib/uart.o
In file included from /home/hadi/Projects/avrlib/uart.c:22:
/home/hadi/Projects/avrlib/uart.h:177: error: expected ‘)’ before ‘baudrate’
/home/hadi/Projects/avrlib/uart.h:192: error: expected ‘)’ before ‘data’
/home/hadi/Projects/avrlib/uart.h:206: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘uartReceiveByte’
/home/hadi/Projects/avrlib/uart.h:210: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘uartReceiveBufferIsEmpty’
/home/hadi/Projects/avrlib/uart.h:218: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘uartAddToTxBuffer’
/home/hadi/Projects/avrlib/uart.h:227: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘uartSendBuffer’
/home/hadi/Projects/avrlib/uart.c:26: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘uartReadyTx’
/home/hadi/Projects/avrlib/uart.c:27: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘uartBufferedTx’
/home/hadi/Projects/avrlib/uart.c: In function ‘uartInit’:
/home/hadi/Projects/avrlib/uart.c:52: warning: implicit declaration of function ‘outb’
/home/hadi/Projects/avrlib/uart.c:52: warning: implicit declaration of function ‘BV’
/home/hadi/Projects/avrlib/uart.c:55: warning: implicit declaration of function ‘uartSetBaudRate’
/home/hadi/Projects/avrlib/uart.c:57: error: ‘uartReadyTx’ undeclared (first use in this function)
/home/hadi/Projects/avrlib/uart.c:57: error: (Each undeclared identifier is reported only once
/home/hadi/Projects/avrlib/uart.c:57: error: for each function it appears in.)
/home/hadi/Projects/avrlib/uart.c:57: error: ‘TRUE’ undeclared (first use in this function)
/home/hadi/Projects/avrlib/uart.c:58: error: ‘uartBufferedTx’ undeclared (first use in this function)
/home/hadi/Projects/avrlib/uart.c:58: error: ‘FALSE’ undeclared (first use in this function)
/home/hadi/Projects/avrlib/uart.c: In function ‘uartInitBuffers’:
/home/hadi/Projects/avrlib/uart.c:70: warning: pointer targets in passing argument 2 of ‘bufferInit’ differ in signedness
/home/hadi/Projects/avrlib/uart.c:72: warning: pointer targets in passing argument 2 of ‘bufferInit’ differ in signedness
/home/hadi/Projects/avrlib/uart.c: At top level:
/home/hadi/Projects/avrlib/uart.c:89: error: expected ‘)’ before ‘baudrate’
/home/hadi/Projects/avrlib/uart.c:114: error: expected ‘)’ before ‘txData’
/home/hadi/Projects/avrlib/uart.c: In function ‘uartGetByte’:
/home/hadi/Projects/avrlib/uart.c:127: error: ‘u08’ undeclared (first use in this function)
/home/hadi/Projects/avrlib/uart.c:127: error: expected ‘;’ before ‘c’
/home/hadi/Projects/avrlib/uart.c:128: warning: implicit declaration of function ‘uartReceiveByte’
/home/hadi/Projects/avrlib/uart.c:128: error: ‘c’ undeclared (first use in this function)
/home/hadi/Projects/avrlib/uart.c: At top level:
/home/hadi/Projects/avrlib/uart.c:135: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘uartReceiveByte’
/home/hadi/Projects/avrlib/uart.c:170: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘uartReceiveBufferIsEmpty’
/home/hadi/Projects/avrlib/uart.c:183: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘uartAddToTxBuffer’
/home/hadi/Projects/avrlib/uart.c: In function ‘uartSendTxBuffer’:
/home/hadi/Projects/avrlib/uart.c:193: error: ‘uartBufferedTx’ undeclared (first use in this function)
/home/hadi/Projects/avrlib/uart.c:193: error: ‘TRUE’ undeclared (first use in this function)
/home/hadi/Projects/avrlib/uart.c:195: warning: implicit declaration of function ‘uartSendByte’
/home/hadi/Projects/avrlib/uart.c: In function ‘__vector_13’:
/home/hadi/Projects/avrlib/uart.c:233: error: ‘uartBufferedTx’ undeclared (first use in this function)
/home/hadi/Projects/avrlib/uart.c:244: error: ‘FALSE’ undeclared (first use in this function)
/home/hadi/Projects/avrlib/uart.c:246: error: ‘uartReadyTx’ undeclared (first use in this function)
/home/hadi/Projects/avrlib/uart.c:246: error: ‘TRUE’ undeclared (first use in this function)
/home/hadi/Projects/avrlib/uart.c: In function ‘__vector_11’:
/home/hadi/Projects/avrlib/uart.c:260: error: ‘u08’ undeclared (first use in this function)
/home/hadi/Projects/avrlib/uart.c:260: error: expected ‘;’ before ‘c’
/home/hadi/Projects/avrlib/uart.c:263: error: ‘c’ undeclared (first use in this function)
/home/hadi/Projects/avrlib/uart.c:263: warning: implicit declaration of function ‘inb’
make: *** [/home/hadi/Projects/avrlib/uart.o] Error 1
rm /home/hadi/Projects/avrlib/buffer.o