Using the Turbo C++ Project facility, I have linked some 5-6 files
which consist of function definitions with a file which contains the
definition of main(). main() uses the function definitions that are given
in the other files. There are a lot of variables which need to be
accessed by all the functions. So I have declared them to be global.
The file that contains the main() definition compiles successfully but on
linking it gives the error :
Linker Error :
Undefined symbol 'function_name' in module 'file_containing_main'.
On compiling the files that contain other function definitions, it gives an
error :
Error :
Undefined symbol 'global_variable'.
I had done the same thing with another project which did not involve
global variables & it had worked.
So what should I do now ?