From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,77e6acc9c025909b X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-08-02 00:24:11 PST Path: bga.com!news.sprintlink.net!hookup!usc!howland.reston.ans.net!math.ohio-state.edu!jussieu.fr!univ-lyon1.fr!swidir.switch.ch!scsing.switch.ch!news.dfn.de!zeus.rbi.informatik.uni-frankfurt.de!terra.wiwi.uni-frankfurt.de!news.th-darmstadt.de!fauern!zib-berlin.de!irz401!news.urz.tu-dresden.de!rdalph!polnick From: polnick@rdalph (system PRIVILEGED account) Newsgroups: comp.unix.osf.osf1 Subject: Re: Mixed language programming Date: 2 Aug 1994 06:59:14 GMT Organization: TU Dresden (URZ) Message-ID: <31kqs2$716@RMAIL.urz.tu-dresden.de> References: <31jtb4$f1a@news.u.washington.edu> NNTP-Posting-Host: rdalph.urz.tu-dresden.de X-Newsreader: TIN [version 1.2 PL2] 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