Hello.
I am trying to write my first library. I wanted to include an ISR function on it, and following what I read in this thread(http://forum.arduino.cc/index.php/topic,119462.0.html, reply #2) I made an ISR like the following :
ISR(TIMER2_OVF_vect, ISR_NOBLOCK){
MultiTXRX::handleInterrupt();
}
MultiTXRX is the main class and has lots of public variables, handleInterrupt is a static function of that class. The handleInterrupt function modifies lots of these public static variables.
What happens is that when I try to compile my library the following errors appear :
C:\Program Files (x86)\Arduino\libraries\MultiTXRX/MultiTXRX.cpp:69: undefined reference to
MultiTXRX::txBits' C:\Program Files (x86)\Arduino\libraries\MultiTXRX/MultiTXRX.cpp:69: undefined reference to
MultiTXRX::txBits’
C:\Program Files (x86)\Arduino\libraries\MultiTXRX/MultiTXRX.cpp:71: undefined reference to `MultiTXRX::txTimer’
and so on, for every occurrence of one of these static variables (txBits, txTimer,…) in the handleInterrupt function.
What is the cause of this problem? How can I solve it?
Thank you