I study this for hours today, making and testing various sketches, and found (as you already found) changing them to .cpp is a workaround, but if you want to specially create an ac file, you have to wrap the prototypes in the header to force it to compile . It has some good posts, but the gist of the problem is in your .h file:
#ifdef __cplusplus extern "C" { #endif void readArms(void); #ifdef __cplusplus } #endif
source share