This is what salem c wrote earlier:
salem c wrote: |
---|
Exactly ONE of your .cpp files needs these globals declared.
1 2 3
|
int a;
string doe;
int pri;
|
|
emphasis mine.
Do you know the difference between a
global and a
local variable?
If you have
extern int a;
in your header, you need to declare
int a;
on
global scope in
one of the .cpp files.
Also, you should really be avoiding the use of global variables here in the first place. See how much trouble they're already causing? Wrap the variables you need in class or struct, and give input parameters to your blur functions (or make them class members).
I think your function GaussianBlur is trying to do too many things at once. I would pass it a pre-existing image, and the parameters it needs to do the blur. Do the actual file loading/saving in other functions.
But, for now, just do what salem c said: They need to global variables, not local ones.
_____________________
PS: Last thoughts: There's no point in declaring the function as extern, just remove the inline. And you should be using proper header guards.
https://www.learncpp.com/cpp-tutorial/1-10a-header-guards/