Code: Select all
/usr/lib/avr/include/avr/io.h:623:6: warning: #warning "device type not defined" [-Wcpp]
# warning "device type not defined"
It looks like __AVR_ATmega328P__ isn't being defined for some reason.
Is it even worth using C++? I'm mainly interested in it because it makes encapsulation more convenient. What I want should be possible if I'm careful about how and where I declare things in C, but is a little cleaner in C++.