xyz.h vs xyz.cpp files - how are they related?

Hi,

im just in the process of programming a 3D stepper driver program with a Quadstep board from sparkfun, i´m getting error messages like "error in stepper.cpp ", but stepper.cpp is never called in my sketch. How are stepper.h and stepper.cpp related?

How are stepper.h and stepper.cpp related?

The header file, stepper.h, defines a class. The source file, stepper.cpp, implements the class.

When you include a .h file, you are telling the IDE that it needs to compile the corresponding .cpp file, too.

There is, of course, no reason to include a header file unless you intend to create an instance of the class that it defines.