A0, A1 no declared in scope

You need to add this line to your .h or .cpp file:

#include <Arduino.h>

That will provide the declarations for all of the standard Arduino API.

You didn't need to do this in your .ino sketch files because the Arduino IDE automatically adds that line at the top of the file before compiling. This is done in order to allow beginners to write sketches with the minimum amount of confusing lines of code to understand.