Using timer interrupts in a library

I sort of understand classes, but I don't know all the finicky things that make them not work.

So for now I will just use functions and prototypes, with no namespace or class. However, I need this library of functions create an instance and have access to a class of a different library. How can I do that?