Software Archive
Read-only legacy content
17061 Discussions

Shareable images

Intel_C_Intel
Employee
266 Views
Unable to compile and link shareable images correctly. The compile and link works, but each process which should be running against a single shareable image seems to be running against their own version of the image (a change made by one process is not seen by the others process linked to the same shareable image).
Process accessing the shareable images are declared as external data.
When linking the shareable image the opt file has an entry in the symbol_vector for each of the global symbols.
The shareable image has been installed before the process linked to this are run.
Can you please explain why it may be that I am not accessing the shareable data correctly.
0 Kudos
1 Reply
Steven_L_Intel1
Employee
266 Views
You say you're using DEC C, but the process is similar for Fortran and is documented in the Fortran User Manual for OpenVMS Alpha. My guess is that you're forgetting to set the SHR PSECT attribute.

Steve
0 Kudos
Reply