Society of Robots - Robot Forum

Software => Software => Topic started by: adanvasco on June 15, 2011, 02:09:02 PM

Title: Build error using LCD library
Post by: adanvasco on June 15, 2011, 02:09:02 PM
Hello.

I'm getting the following error when building the $50 robot project. Everything was fine until I added the LCD library.

c:/winavr/bin/../lib/gcc/avr/4.3.3/../../../../avr/bin/ld.exe: Photovore_v1.elf section .text will not fit in region text
c:/winavr/bin/../lib/gcc/avr/4.3.3/../../../../avr/bin/ld.exe: region text overflowed by 2224 bytes

Any idea what this is? I don't really think the program is too big for my ATmega8. I'm not sure if there is any error with type casting. I already included the lcd.c source file to the makefile. Please take a look at the attached code.

Thanks.
Title: Re: Build error using LCD library
Post by: adanvasco on June 15, 2011, 02:47:54 PM
Found the solution. Needed to turn optimization on. Level 2 made it work.  8)