🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.fortran
Article #4578

Re: HELP: calling c from fortran 77

#4578
From: Rohitha P. Jayasinghe
Date: Fri, 08 Jan 1993 18:07
23 lines
1084 bytes
In article <C0IBxD.JL3@ccu.umanitoba.ca>, jayas@ee.umanitoba.ca (Rohitha P. Jayasinghe) writes:
> Is it possible to call a C subroutine from fortran 77?
> If so, how can that be done?
> 
> thanks.
> 
> Rohitha.

Many thanks to those who replied.
I should have included more information in my original posting.

 - I am working on a Sun workstaion.
 - operating system Unix / Sun 4.1.2 
 - Fortran compiler Sun FORTRAN 1.4
 - C compiler Sun C 1.1

I have to call several C subroutines.
Argument types vary from integer/real
 to arrays/single variables.

Thanks again.

Rohitha.
Technical Details
Message-ID: <C0JroK.Kpx@ccu.umanitoba.ca>
Path: arc1-ca.pugleaf.net!sparky!uunet!newsflash.concordia.ca!mizar.cc.umanitoba.ca!ee.umanitoba.ca!jayas
References: <C0IBxD.JL3@ccu.umanitoba.ca>

Show Full Headers
Complete Article Headers
Newsgroups: comp.lang.fortran
Path: arc1-ca.pugleaf.net!sparky!uunet!newsflash.concordia.ca!mizar.cc.umanitoba.ca!ee.umanitoba.ca!jayas
From: jayas@ee.umanitoba.ca (Rohitha P. Jayasinghe)
Subject: Re: HELP: calling c from fortran 77
Message-ID: <C0JroK.Kpx@ccu.umanitoba.ca>
Sender: news@ccu.umanitoba.ca
Nntp-Posting-Host: pow2.ee.umanitoba.ca
Organization: Dept. of Elect. & Comp. Eng., U of Manitoba
References:  <C0IBxD.JL3@ccu.umanitoba.ca>
Date: Fri, 8 Jan 1993 18:07:31 GMT
Lines: 23