I'm using Code::Blocks as my IDE and whenever I try to build a project I get this series of errors:
main.c|1|error: avr/io.h: No such file or directory| main.c||In function ‘main’:| main.c|16|error: ‘DDRB’ undeclared (first use in this function)| main.c|16|error: (Each undeclared identifier is reported only once| main.c|16|error: for each function it appears in.)| main.c|22|error: ‘PORTB’ undeclared (first use in this function)| ||=== Build finished: 5 errors, 0 warnings ===|
I've read where this could be caused by an old gcc version in Ubuntu, so I tried to remove and reinstall mine apparently to no avail, though. Can anyone help me out?
Oh yeah, I'm using the led project from this post https://www.avrfreaks.net/index.php?name=PNphpBB2&file=viewtopic&t=38735