From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1094ba,ea1392ccddcc8364 X-Google-Attributes: gid1094ba,public X-Google-Thread: 109a1b,ea1392ccddcc8364 X-Google-Attributes: gid109a1b,public X-Google-Thread: f678f,ea1392ccddcc8364 X-Google-Attributes: gidf678f,public X-Google-Thread: fee84,ea1392ccddcc8364 X-Google-Attributes: gidfee84,public From: lionel@quark.zko.dec.com (Steve Lionel) Subject: Re: Fortran common blocks in shared libraries on OSF/1 Date: 1996/04/30 Message-ID: <4m5dpt$8j2@zk2nws.zko.dec.com>#1/1 X-Deja-AN: 153108202 distribution: world sender: lionel@quark.enet.dec.com (Steve Lionel) references: <4m28t5$gdm@newton.cc.rl.ac.uk> organization: Digital Equipment Corporation, Nashua NH reply-to: lionel@quark.zko.dec.com (Steve Lionel) newsgroups: comp.unix.osf.misc,comp.unix.osf.osf1,ral.general,comp.lang.fortran In article <4m28t5$gdm@newton.cc.rl.ac.uk>, street@wdcc1.bnsc.rl.ac.uk (Rachel Kay Street) writes: |> |> |>I am working on a large library being ported from VMS to OSF/1. |>The library includes a mix of code written in C and Fortran 77. |> |>What do I on the ld line for building the library to cope with the |>common blocks as I want each user to have 'their own copies' ? |>(As the code was most recently on VAX/VMS I do the names of the common |>blocks if this helps me.) Do you have an example of such a command line ? Rachel, Unless I misunderstand your question, you don't need to do anything - it is the default on both OpenVMS and Digital UNIX (OSF/1) that each "user" of a Fortran application has their own copy of the memory used for COMMON blocks. You have to do something special to make the memory shared. Were you using some special linker options on OpenVMS to change how COMMONs worked? If so, please tell me what they were so I can advise you better. -- Steve Lionel mailto:lionel@quark.zko.dec.com Fortran Development http://www.digital.com/info/slionel.html Digital Equipment Corporation 110 Spit Brook Road, ZKO2-3/N30 Nashua, NH 03062-2698 "Free advice is worth every cent" For information on Digital Fortran 90, see http://www.digital.com/info/hpc/f90/