Ram Seshadri wrote:
Further to my previous e-mail I have a question relating to the use of modules and scope of variables declared in module being 'seen' by other modules. The thing is I have variables in one module that I want to be able to seen by other modules. I thought as long as I export the variables from the module it should be fine but it seems not to work all that well as on compiling I get undefined reference errors.
Basically you have to export variables from module that defines them, and then import either variable or the whole module befor use. That is described in the GPC manual, for online viewing see:
http://www.gnu-pascal.de/gpc/Modules-and-Units.html