From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7344,24b292ef3522727c X-Google-Attributes: gidf7344,public X-Google-Thread: 10f8a1,24b292ef3522727c X-Google-Attributes: gid10f8a1,public X-Google-Thread: fc7fa,24b292ef3522727c X-Google-Attributes: gidfc7fa,public From: "Fred Zwarts" Subject: Re: I need some linker help! Date: 1999/06/18 Message-ID: <7kdloi$ip8$1@info.service.rug.nl>#1/1 X-Deja-AN: 491083321 Content-Transfer-Encoding: quoted-printable References: <376a55b5.590364339@news.usit.net> Content-Type: text/plain; charset="iso-8859-1" X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Organization: Kernfysisch Versneller Instituut Mime-Version: 1.0 Newsgroups: comp.os.vms,comp.sys.vms,vmsnet.alpha Did you read the documentation about the /EXTERN_MODEL qualifier of the = DECC compiler? The is one of the differences between the VAXC end the DECC compiler. Steve Kulpa (remove N*O*_S*P*A*M_ before replying) = wrote in message = news:376a55b5.590364339@news.usit.net... > I have an application that I've ported from a VMS-VAX to a VMS-Alpha. > The application involves both C modules and FORTRAN modules. There is > a FORTRAN common in the program with various structures and variables. > There are various EXTERNS in the C modules which relate to the > structures in the FORTRAN common. > The program compiles, links, and runs on a VAX just fine. On the > Alpha, the program will compile OK, but the linker complains about > some undefined symbols, which happen to be structures in the > FORTRAN common. This program was written by myself (a FORTRAN > programmer) and a co-worker (a C programmer) who is no longer here. I > dragged another C programmer into my office and he took a look at the > source code with me. He says the problem is that the EXTERNS in the C > modules that I'm linking with the FORTRAN modules are not seeing the > symbols declared in the FORTRAN common. >=20 > I dragged out my Linker manual (may 1993) on page 2-2 it mentions some > stuff that sounds like what I'm doing. >=20 > From the book: > "In some Digital programming languages, certain types of global > symbols, such as external variables in C and COMMON data in FORTRAN, > are not listed in the GSD as global symbol references or definitions. > Because these data types implement virtual memory that is shared, the > languages implement them as program sections that are overlaid. These > symbols appear as program section definitions in the GSD, not as > symbol definitions or reference. (Compilers use program sections to > define the memory requirements of an object module.) The linker does > not include program section definitions in its symbol resoultion > processing. For information about how the linker processes program > sections, see Chapter 3." >=20 > Well, I read chapter 3 and can not find a soultion for my problem. I > assume all I need to do is add some lines to the linker options file > for the program, but I don't know that they may be. Does anybody > out there know what I have to add to the linker options file so I can > link this thing? =20 >=20 > This is real important to me and I will appreciate any insight anyone > can give me. > Thanks, >=20 > Steve Kulpa > Project Leader > Environmental Systems Corp. > Knoxville, TN >=20 > Please remove the N*O*_S*P*A*M_ from my e-mail address > before replying to me directly. Thanks! >=20