Everhart,Glenn From: Jim Lahman [jlahman@cyberdrive.net] Sent: Monday, April 20, 1998 8:33 PM To: Info-VAX@Mvb.Saic.Com Subject: Re: VAX ALPHA C migration share problems Here's a copy of my options file I have to update an installed shareable image: Symbol_Vector=(CTS_LOCCOM=PSECT) PSECT_ATTR=CTS_LOCCOM,shr and here's a copy of my header file: #ifdef RESERVE_SPACE #define GLOBAL #else #define GLOBAL extern #endif #pragma extern_model common_block shr struct _loccom { CTS_LOCGC location[MAX_LOC]; long numLoc; }; GLOBAL struct _loccom cts_loccom; this header file is included in a C file all by itself which is compiled and linked as follows as shown in this command procedure: $! $! Generated by Jim Lahman to compile and link msgcom.h $! $! DO_CC := cc/define=VMS/share_globals/extern_model=common_block $ DO_CC := cc $ DO_LINK := link/exe=cts_cmn:cts_loccom.EXE/shareable/map/full $! $ DO_CC CTS_LOCCOM.C $ DO_LINK CTS_LOCCOM.OBJ, cts_loccom.opt/opt I install all shareable images with the /write/share/open/head qualifiers -- jpl jlahman@cyberdrive.net I have nothing to offer but blood, toil, sweat and tears. - Winston Churchill | In article <353B2910.7EB5B9B8@iies.es>, mcm writes: | : I'm making the migration for a C application from VAX VMS to ALPHA VMS. | | "OpenVMS VAX" and "OpenVMS Alpha". | | : I need to compile, link and install a shareable image in a ALPHA | :OPENVMS machine, but i have problems. | : | : I can read the data at the share common but i canīt update them. | | What errors are you getting? Access Violations (ACCVIOs)? | |