View Full Version : [SOLVED] avr-gcc includes
December 18th, 2008, 08:57 AM
We are trying to program a Atmel controller, then this thing comes up..
main.c:1:20: error: avr/io.h: No such file or directory
In witch directory should we put the .h include files? Tanks
December 18th, 2008, 09:01 AM
forgot to put in the command line
a@a-l:~/kontrollerlab$ avr-gcc -mmcu=attiny26 -O0 -c /home/a/kontrollerlab/main.c -o main.o
December 18th, 2008, 09:16 AM
Problem solved with the comand
Then the path pupped up, witch in our case were
August 20th, 2009, 10:42 AM
Nice to see tha tyou had the same problem, but for me it is still not solved.
Can you explained in details what you did ?
I tried to copy all includes installaed by avr-libc from /usr/lib/avr/include, to /usr/lib/gcc/avr/4.3.2/include (directory given by the command : avr-gcc -print-file-name=include) but it doesn't work.
Can you help me ?
Thanks a lot.
June 2nd, 2010, 06:35 PM
Old thread, but is ranks high on Google, so if anyone else stumbles upon this:
Make sure you have the avr-libc package installed.
$ sudo aptitude install avr-libc
December 10th, 2010, 08:22 AM
@knatten thank you very much i am using an arduino and adding that package solved my problem.
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.