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


hi,

im in process of programming 3d stepper driver program quadstep board sparkfun, i´m getting error messages "error in stepper.cpp ", stepper.cpp never called in sketch. how stepper.h , stepper.cpp related?

quote
how stepper.h , stepper.cpp related?

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

when include .h file, telling ide needs compile corresponding .cpp file, too.

there is, of course, no reason include header file unless intend create instance of class defines.


Arduino Forum > Using Arduino > Programming Questions > xyz.h vs xyz.cpp files - how are they related?


arduino

Comments

Popular posts from this blog

Connecting Raspberry Pi 2 to P10(1R)-V706 LED Dot Matrix - Raspberry Pi Forums

TypeError: <unknown> is not a numpy array - Raspberry Pi Forums

datso and removing imagetitle - Joomla! Forum - community, help and support