From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7344,9a80b8dd0134f87b,start X-Google-Attributes: gidf7344,public X-Google-Thread: fc89c,9a80b8dd0134f87b,start X-Google-Attributes: gidfc89c,public X-Google-Thread: f678f,9a80b8dd0134f87b,start X-Google-Attributes: gidf678f,public X-Google-Thread: 10b612,9a80b8dd0134f87b,start X-Google-Attributes: gid10b612,public X-Google-Thread: fee84,9a80b8dd0134f87b,start X-Google-Attributes: gidfee84,public X-Google-Thread: 1094ba,9a80b8dd0134f87b,start X-Google-Attributes: gid1094ba,public X-Google-Thread: 1014db,9a80b8dd0134f87b,start X-Google-Attributes: gid1014db,public From: street@wdcc1.bnsc.rl.ac.uk (Rachel Kay Street) Subject: C calling Fortran 77 shared library on OSF/1 (or DUnix ?) Date: 1996/05/02 Message-ID: <4m9s2v$f6u@newton.cc.rl.ac.uk>#1/1 X-Deja-AN: 152561234 distribution: world sender: street@rainbow.cc.rl.ac.uk (Rachel Kay Street) organization: World Data Centre C1, Rutherford Appleton Laboratory, U.K. keywords: Fortran 77 common blocks shared library c calling fortran reply-to: R.K.Street@rl.ac.uk newsgroups: comp.unix.osf.misc,comp.unix.osf.osf1,comp.lang.c,comp.lang.fortran,comp.unix.programmer,comp.unix.ultrix,comp.os.vms Hello, I am sorry if you have seen these two sets of questions before but I am not getting answers and wonder if there are no answers or my message never reached the net. I am working on a large shared library written in a mixture of C and Fortran being ported from VAX/VMS to OSF/1. I have a few problems (or questions) though. Do you know any of the answers please ? 1) Does anyone know if DEC C manual set for OSF/1 exists as I cannot find any bookreader files yet ? If they exist which CD are they on, for which OS versions and where ? 2) Also any one tried to mix character*(*) array(length) and char *array[] (or char **array) when making calls from C into Fortran 77 functions ? Do you have an example I could read as all I can do is create core ? I have managed to pass single character strings by blank filling and null terminating single string in C, with Fortran index searching for char(0). Is there a better method as without explicit limits say a Fortran print of the string just keeps on printing out memory until it dumps core ? 3) What do I do with the common blocks when I create the shared library from its object and 'normal' library parts? Does ld know how to find the commons and deal with them automatically ? What about block data units ones ? Thanks for your time. Rachel Street **************************************************************** * R K Street - RAL Database Systems - (01235) 821900 ext 5833 * * Rutherford Appleton Laboratory, Chilton, DIDCOT, Oxon, UK * * Email: TCPIP street@wdcc1.bnsc.rl.ac.uk * * or R.K.Street@rl.ac.uk * * DECNET wdcc1b::street or 20437::street * ****************************************************************