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: Arne =?iso-8859-1?Q?Vajh=F8j?= Subject: Re: I need some linker help! Date: 1999/06/21 Message-ID: <376E4827.70940F02@gtech.com>#1/1 X-Deja-AN: 492108044 Content-Transfer-Encoding: 7bit References: <376a55b5.590364339@news.usit.net> To: "Steve Kulpa (remove N*O*_S*P*A*M_ before replying)" X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: GTECH Corporation News Server Mime-Version: 1.0 Newsgroups: comp.os.vms,comp.sys.vms,vmsnet.alpha "Steve Kulpa (remove N*O*_S*P*A*M_ before replying)" wrote: > 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. I think you are looking for: $ CC /EXTERNAL=COMMON Arne