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?
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
Post a Comment