Newsgroups: comp.lang.c
Path: utzoo!henry
From: henry@utzoo.uucp (Henry Spencer)
Subject: Re: USING FORTRAN/IMSL LIB. FROM C
Message-ID: <1990Feb16.172952.24266@utzoo.uucp>
Organization: U of Toronto Zoology
References: <Feb.15.22.58.45.1990.11984@amalthea.rutgers.edu>
Date: Fri, 16 Feb 90 17:29:52 GMT

In article <Feb.15.22.58.45.1990.11984@amalthea.rutgers.edu> majmudar@amalthea.rutgers.edu (Keyur Majmudar) writes:
>I am trying to call an IMSL subroutine (qdags) [in FORTRAN] from a C
>program, but I have not been succesful in doing so.
>I keep on getting an error "Unresolved symbols .... - symbol : _qdags"

You need to look in your Fortran manual to find out the details of linking
Fortran to C on your particular system.  (It is almost impossible to give
specific advice without knowing your machine or operating system.)  Often
to call Fortran routine "foobar" you need to call something like "foobar_"
from C.  Also, parameter-passing conventions are often different.  You
usually can't just call Fortran subroutines as if they were C functions.
-- 
"The N in NFS stands for Not, |     Henry Spencer at U of Toronto Zoology
or Need, or perhaps Nightmare"| uunet!attcan!utzoo!henry henry@zoo.toronto.edu
