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 [thread overview]
Message-ID: <4m9s2v$f6u@newton.cc.rl.ac.uk> (raw)
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 *
****************************************************************
next reply other threads:[~1996-05-02 4:00 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-05-02 4:00 Rachel Kay Street [this message]
1996-05-02 4:00 ` C calling Fortran 77 shared library on OSF/1 (or DUnix ?) @#$%!?!
1996-05-04 4:00 ` Sergio Gelato
1996-05-07 4:00 ` William Deich
1996-05-08 4:00 ` Sergio Gelato
1996-05-06 4:00 ` Steve Lionel
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox