Search found 2 matches

by funkenregen
Mon Feb 06, 2012 7:37 pm
Forum: V-USB
Topic: won't compile - variable must be const
Replies: 3
Views: 18246

Re: won't compile

i fixed it myself with some help of the trusty interwebs. newer avr-gcc versions demand that everything put in progmem is defined const [1]. so i just put a const in front of every PROGMEM line where the compiler complained. changes were necessary in usbdrv.h, usbdrv.c and the main program (the usbH...
by funkenregen
Sat Feb 04, 2012 6:19 pm
Forum: V-USB
Topic: won't compile - variable must be const
Replies: 3
Views: 18246

won't compile - variable must be const

hi i am trying to compile an example but i get errors when executing 'make hex'. the machine is fedora f16, avr-gcc (Fedora 4.6.2-1.fc16) 4.6.2 output: [...]vusb-20120109/examples/hid-data/firmware % make hex avr-gcc -Wall -Os -DF_CPU=16500000 -Iusbdrv -I. -DDEBUG_LEVEL=0 -mmcu=attiny45 -c usbdrv/us...