Help pls. Error messages compiling a file using avr-gcc.



i haven't experience programming , writing code.
i upload program atmega328p reads data digital caliper lcd screen.
i found attached program. program uses libraries , file , found these , have create directory , have put these files inside , have run avr-gcc compile ( hope done ).
with avr-gcc trying compile calipers.c file.
i foung following command , have run:
avr-g++ -g -os -wall -mcall-prologues -mmcu=atmega328p -fno-exceptions -o calipers.obj calipers.c

 the avr-gcc , seems find libraries , files shows following error message:

calipers.c : c154:   error;   expected primary-expression before "." token
calipers.c : c159:   error;   expected primary-expression before "." token

line 154 contents following code ( see attatch file ):

file uart_stream = fdev_setup_stream(uart_putchar, uart_getchar, _fdev_setup_rw);
 stdin = stdout = &uart_stream;

line 159 contents following code :

file lcd_stream = fdev_setup_stream(lcd_putchar, 0, _fdev_setup_write);
  lcd_clear_and_home();

could me problem , how can fix ?
maybe syntax error @ these lines ?

thanks help,
happy new year

takis

well, not arduino sketch. feeding hay cat. don't work.

-jim lee


Arduino Forum > Using Arduino > Programming Questions > Help pls. Error messages compiling a file using avr-gcc.


arduino

Comments

Popular posts from this blog

DHT11 Time out error using v0.4.1library

Sketch upload fails with Java error (___REMOVE___/bin/avrdude)!

Arduino Uno + KTY81/210 temperature sensor