I am use 14.04 version of Ubuntu. Whenever i run AVR program this kind of error is generating "fatal error: avr/io.h: No such file or directory. compilation terminated".

So, please someone help me how to include avr/io.h file in the GCC compiler.


1 Answer 1


You might have installed just gcc-avr. For getting all the device specific libraries you need to install avr-libc as well.

please try sudo apt-get install avr-libc

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.