Path: utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!samsung!munnari.oz.au!bruce!merlin!tim From: tim@bhpmrl.oz.au (Tim Monks) Newsgroups: comp.sys.sgi Subject: C passing an external function to Fortran Keywords: C - Fortran communication Message-ID: <1991Feb15.063343.6663@bhpmrl.oz.au> Date: 15 Feb 91 06:33:43 GMT Sender: usenet@bhpmrl.oz.au (USEnet nntp account) Organization: BHP Research - Melbourne Laboratories, AUSTRALIA Lines: 31 Hello, I have a Fortran subroutine with the following parameter list : SUBROUTINE LSQR( M, N, APROD, ...) EXTERNAL APROD INTEGER M,N : : LSQR itself calls the subroutine APROD. I want to call LSQR from my C program. I have read the Fortran Programmers Guide, and the C manual, but I could not find how to pass a function name as I want to. What is the secret ? Please email me as I won't be in the office next week and will miss any stuff in this newsgroup. I will summarize and post if it is warranted. Thanks, Tim. -- Dr. Tim Monks Image Processing & Data Analysis Group | (direct) (+61-3)566-7448 BHP Research - Melbourne Laboratories | (switch) (+61-3)560-7066 245 Wellington Rd, Mulgrave, 3170, | (fax) (+61-3)561-6709 AUSTRALIA | (EMAIL) tim@bhpmrl.oz.au