LCDInfo.com http://forum.lcdinfo.com/ |
|
Why can't i compile the GLCD.zip source with WINAVR? http://forum.lcdinfo.com/viewtopic.php?f=9&t=2421 |
Page 1 of 1 |
Author: | gps_runner [ Tue Feb 26, 2008 19:20 ] |
Post subject: | Why can't i compile the GLCD.zip source with WINAVR? |
Hi all Don't know if this is the correct place in this forum... if not, please remove this message! Anyhow i tried "all possible lcd sources" mainly for PCF8833 Nokia 6610 LCD at different forums and i always get compile errors. All hints are welcome.. Tried the GLCD.zip source dated 040414 taken from another forum i get the following when i try to compile it with WINAVR 20071221: By the way i found the glcd.zip source at: http://www.mikrocontroller.net/topic/12218 Best regards, Hans C:\make clean -------- begin -------- Cleaning project: .. .. Errors: none -------- end -------- C:\make all set -e; avr-gcc -MM -mmcu=atmega32 -I. -Os -mcall-prologues -funsigned-char -fun signed-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhl ns=test.lst -std=gnu99 test.c \ | sed 's,\(.*\)\.o[ :]*,\1.o \1.d : ,g' > test.d; \ [ -s test.d ] || rm -f test.d -------- begin -------- avr-gcc (GCC) 4.2.2 (WinAVR 20071221) Copyright (C) 2007 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. Compiling: test.c avr-gcc -c -mmcu=atmega32 -I. -Os -mcall-prologues -funsigned-char -funsigned-bi tfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=test.l st -std=gnu99 test.c -o test.o In file included from test.c:2: c:/avr/include/glcd.h:49: error: expected identifier or '(' before '}' token c:/avr/include/glcd.h:49: error: expected ';' before 'glcdFlags_t' make: *** [test.o] Error 1 Press any key to continue . . . ---- Error as shown below: } } glcdFlags_t; <<<<<<---------- removed one "} " by using // Then i got the : In file included from test.c:2: c:/avr/include/glcd.h:52: error: expected specifier-qualifier-list before 'extern' Which is the line below: extern uint8_t glcd_MemCtrl; // display RAM access and degree of rotation I've done the installation steps by editing and copy the requested files... i assume.... |
Page 1 of 1 | All times are UTC + 2 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |