I am using the Arduino IDE 1.6.0, There is a project that has compiled both for Due and MEGAMega on another computer. But Onon my machine, it only compiles only for Due. When Compilingcompiling for "MEGA"Mega or MEGAMega 2560", I get the following error:
/Arduino/hardware/tools/avr/bin/../lib/gcc/avr/4.8.1/../../../../avr/bin/ld: skipping incompatible /Arduino/hardware/tools/avr/bin/../lib/gcc/avr/4.8.1/../../../../avr/lib/libc.a when searching for -lc
/Arduino/hardware/tools/avr/bin/../lib/gcc/avr/4.8.1/../../../../avr/bin/ld: cannot find -lc
collect2: error: ld returned 1 exit status
Error compiling.
/Arduino/hardware/tools/avr/bin/../lib/gcc/avr/4.8.1/../../../../avr/bin/ld: skipping incompatible /Arduino/hardware/tools/avr/bin/../lib/gcc/avr/4.8.1/../../../../avr/lib/libc.a when searching for -lc /Arduino/hardware/tools/avr/bin/../lib/gcc/avr/4.8.1/../../../../avr/bin/ld: cannot find -lc collect2: error: ld returned 1 exit status Error compiling.
My newbie guess is something is wrong with AVR libraries. But how to solve it?
(also Also could sbsomeone please explain what -lc is "-lc", which cannot be found? atAt first glance it looks like an option.)