Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: polnick@rdalph (system PRIVILEGED account)
Subject: Re: Mixed language programming
Date: 2 Aug 1994 06:59:14 GMT	[thread overview]
Message-ID: <31kqs2$716@RMAIL.urz.tu-dresden.de> (raw)
In-Reply-To: 31jtb4$f1a@news.u.washington.edu

Phil Neal (neal@trieste.stat.washington.edu) wrote:

: Dear osf1/alpha people,

: I have been having a problem trying to make a program with
: a C main and a f77 subroutine. I have been through the man
: pages and the dxbook stuff for f77. It gives examples for
: f77 calling C but never C calling f77. Any pointers would
: be extremely appreciated (no pun intended).


: Here is the main:

: extern testit_();
: main()
: {
: testit_(); 
: printf(" back again \n");
: }

: And here is the subroutine:


:         subroutine testit()
:         write(*,*) ' in testit'
:         return
:         end


I tried the other way:

          >f77 -c testit.f
          >cc test.c testit.o  -lfor
          >a.out
            in testit
           back again
          >

and it worked fine (OSF V2.0).

Michael Polnick
TU DRESDEN



  reply	other threads:[~1994-08-02  6:59 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-08-01 22:35 Mixed language programming Phil Neal
1994-08-02  6:59 ` system PRIVILEGED account [this message]
1994-08-02 14:02 ` Alexander Kovzelev
  -- strict thread matches above, loose matches on Subject: below --
1994-08-01 14:37 Phil Neal
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