How to enable abbreviated port names in Atmel Studio?
Weird. avr/io.h includes avr/portpins.h which has the abbreviated forms. Maybe it has something to do with that first include you have? Try removing the #include &lt;io.h&gt; and the #define PD5 = 5 lines, and also check if you have the correct microcontroller configured in your project settings.