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:
Compiles on gcc 3.3 but not on gcc 4.0.3)
I have an external variable declared in "Globals.h"
There are tons of other source files that reference this variable but do not declare it IN ANYWAY internally.Code:extern float PROB_SMOOTH;
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
in all the source files that reference PROB_SMOOTH.Code:extern float PROB_SMOOTH;
I know it will compile. I've tried it.
But, someone, if I'm doing something wrong here, please let me know.