Accessing global variables from shared/dynmaic functions.

Dan Prener prener at watson.ibm.com
Fri Apr 19 10:22:14 AEST 1991


In article <6690 at awdprime.UUCP>, andy at ausvm1.iinus1.ibm.com (Andy Martin) writes:
|> If I have a global variable "global" declared in "main.c" and a module
|> "foo.o" which I want to be sharable/dynamically loadable how can I access  
|> "global" from within "foo.o"?
|> 
|> I can sort out the problems for external functions, but cannot find any way
|> for global varaibles I searched through all the documentation avaiable and the
|> only place it appears to mentions the exporting of static data is in the manual
|> page for loadbind ("... ImportaPointer or ExporPointer parameters may also be
|> set to any exported static data area symbol ...").
|> 
|> Any help would be much appreciated!

You can import and export data the same way you import and export 
procedures.  What sort of difficulties have you run into?
-- 
                                   Dan Prener (prener @ watson.ibm.com)



More information about the Comp.unix.aix mailing list