Using #include and header files
Well, I've checked up references and the tutorials. There seems no trace of this, but pardon me if i'm wrong.
I'm working on my little stepper motor control project, and it has became large enough that I need to split it in several files.
Basically, I want something like include or require in php. That simply reads a file and spits it where the function is.
I went with #include, and pasted a bunch of my functions in another file. Then, at the place where i cut them, i wrote #include "functions.cpp"
However, the code doesn't work anymore and i get a undeclared for each function.
How exactly are header files and include used?