Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- > avr-gcc --version
- avr-gcc (GCC) 4.8.2
- > uname -a
- Linux foo 3.10.22-1-MANJARO #1 SMP Wed Dec 4 22:15:26 UTC 2013 i686 GNU/Linux
- ... glcd_ks0108_v11/ > ls
- arial_bold_14.h corsiva_12.h ks0108.c ks0108.h ks0108Test.c makefile readme.txt
- > make
- -------- begin --------
- avr-gcc (GCC) 4.8.2
- Copyright (C) 2013 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: ks0108Test.c
- avr-gcc -c -mmcu=atmega128 -I. -gstabs -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=ks0108Test.lst -std=gnu99 -Wp,-M,-MP,-MT,ks0108Test.o,-MF,.dep/ks0108Test.o.d ks0108Test.c -o ks0108Test.o
- In file included from ks0108Test.c:16:0:
- arial_bold_14.h:48:16: error: variable 'Arial_Bold_14' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
- static uint8_t Arial_Bold_14[] PROGMEM = {
- ^
- In file included from ks0108Test.c:17:0:
- corsiva_12.h:48:16: error: variable 'Corsiva_12' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
- static uint8_t Corsiva_12[] PROGMEM = {
- ^
- ks0108Test.c: In function 'main':
- ks0108Test.c:28:2: warning: pointer targets in passing argument 1 of 'ks0108SelectFont' differ in signedness [-Wpointer-sign]
- ks0108SelectFont(Arial_Bold_14, ks0108ReadFontData, BLACK);
- ^
- In file included from ks0108Test.c:15:0:
- ks0108.h:86:6: note: expected 'const char *' but argument is of type 'uint8_t *'
- void ks0108SelectFont(const char* font, ks0108FontCallback callback, uint8_t color);
- ^
- ks0108Test.c:38:2: warning: pointer targets in passing argument 1 of 'ks0108SelectFont' differ in signedness [-Wpointer-sign]
- ks0108SelectFont(Corsiva_12, ks0108ReadFontData, BLACK);
- ^
- In file included from ks0108Test.c:15:0:
- ks0108.h:86:6: note: expected 'const char *' but argument is of type 'uint8_t *'
- void ks0108SelectFont(const char* font, ks0108FontCallback callback, uint8_t color);
- ^
- ks0108Test.c: At top level:
- ks0108.h:97:16: warning: inline function 'ks0108ReadData' declared but never defined [enabled by default]
- inline uint8_t ks0108ReadData(void);
- ^
- ks0108.h:97:16: warning: inline function 'ks0108ReadData' declared but never defined [enabled by default]
- makefile:376: recipe for target 'ks0108Test.o' failed
- make: *** [ks0108Test.o] Error 1
- >
- ...glcd_rar_2004-02-17_1316/ > ls
- font12x16.h font6x8.h glcd.rar ks0108.c ks0108.h main.c makefile
- > make
- set -e; avr-gcc -MM -mmcu=atmega16 -I. -g -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=ks0108.lst -std=gnu99 ks0108.c \
- | sed 's,\(.*\)\.o[ :]*,\1.o \1.d : ,g' > ks0108.d; \
- [ -s ks0108.d ] || rm -f ks0108.d
- set -e; avr-gcc -MM -mmcu=atmega16 -I. -g -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=main.lst -std=gnu99 main.c \
- | sed 's,\(.*\)\.o[ :]*,\1.o \1.d : ,g' > main.d; \
- [ -s main.d ] || rm -f main.d
- -------- begin --------
- avr-gcc (GCC) 4.8.2
- Copyright (C) 2013 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: main.c
- avr-gcc -c -mmcu=atmega16 -I. -g -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=main.lst -std=gnu99 main.c -o main.o
- In file included from main.c:6:0:
- font12x16.h:22:42: error: variable 'Font12x16' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
- static uint8_t __attribute__ ((progmem)) Font12x16[] = {
- ^
- In file included from main.c:7:0:
- font6x8.h:22:42: error: variable 'Font6x8' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
- static uint8_t __attribute__ ((progmem)) Font6x8[] = {
- ^
- main.c: In function 'main':
- main.c:20:21: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
- largeFont.charData = Font12x16;
- ^
- main.c:24:21: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
- smallFont.charData = Font6x8;
- ^
- makefile:338: recipe for target 'main.o' failed
- make: *** [main.o] Error 1
- >
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement