I'm rephrasing my question on a thread I started earlier since it didn't really help me solve the problem I had.
(The particular thread is:
http://cboard.cprogramming.com/showthread.php?t=88008)
I have an external variable declared in "Globals.h"
Code:
extern float PROB_SMOOTH;
There are tons of other source files that reference this variable but do not declare it IN ANYWAY internally.
For example, a file "NTables.h" has a bunch of code, then in the middle pops out a reference to PROB_SMOOTH without a declaration of PROB_SMOOTH anywhere in "NTables.h".
Also, "Globals.h" does not exist in the header include hierarchy of "NTables.h".
I wish to go about fixing this by declaring
Code:
extern float PROB_SMOOTH;
in all the source files that reference PROB_SMOOTH.
I know it will compile. I've tried it.
But, someone, if I'm doing something wrong here, please let me know.