I'm sure this is a super simple question but I just can't seem to find the right answer for me. The situation is this, I have a function call, that is supposed to call a function from a declared header file. That header file, looks to a .cpp file for the function. Now, every time I try to run I get "undefined reference to 'histogram(*various arguments*). The code follows, if someone can point out where I've gone wrong it would be a great help. Also, I've tinkered around and I want to say that it doesn't even recognize the header file, I've commented it out and still get the same errors when trying to run.
I'm confused... why do you have your function prototype in both main.cpp and histogram.h? void histogram(constint MaxPages, istream& input, ostream& output);