Hi.
In a project of mine, I have many different files 1.h, 1.cpp, 2.h, 2.cpp, 3.h, 3.cpp etc.
Some of the functionality in them depend on veriables or functions in the others.
If I juggle the #includes around I can get around most of it, for instance, if functionality in 2.cpp requires a variable from 3.cpp, then #include "3.h" goes first.
Sometimes however I can not do that, and use global variables and the extern keyword which works fine.
However, I am at a point (very deep into my project) where I could do with, not a variable but a function from another file, the function is not within a class.
My question is, is there a similar method for functions as there is with extern keywaod for variables.
I know my project might not have been thought thougrily through and some things are afterthoughts you see. So until I re-design it I'm hoping there is a workaround.
Thanks for reading.