From chemistry-request@www.ccl.net  Wed Feb 24 12:54:58 1999
Received: from ccl.net (atlantis.ccl.net [192.148.249.4])
        by www.ccl.net (8.8.3/8.8.6/OSC/CCL 1.0) with ESMTP id MAA21432
        Wed, 24 Feb 1999 12:54:57 -0500 (EST)
Received: from bacchus.pc1.uni-duesseldorf.de (root@bacchus.pc1.uni-duesseldorf.de [134.99.152.11])
	by ccl.net (8.8.6/8.8.6/OSC 1.1) with ESMTP id MAA18843
	for <chemistry@ccl.net>; Wed, 24 Feb 1999 12:54:43 -0500 (EST)
Received: from bacchus.pc1.uni-duesseldorf.de (jochen@localhost [127.0.0.1])
	by bacchus.pc1.uni-duesseldorf.de (8.8.7/8.8.7) with SMTP id SAA29411;
	Wed, 24 Feb 1999 18:54:08 +0100
From: Jochen Kuepper <jochen@uni-duesseldorf.de>
Organization: Heinrich-Heine-Universitaet
To: Aaron Hu <aaronguyue@yahoo.com>, CCL <chemistry@ccl.net>
Subject: Re: CCL:C Program
Date: Sun, 3 Apr 2135 01:20:15 +0100
X-Mailer: KMail [version 1.0.17]
Content-Type: text/plain
References: <19990222133513.23701.rocketmail@send203.yahoomail.com>
MIME-Version: 1.0
Message-Id: <99022418540700.24244@bacchus.pc1.uni-duesseldorf.de>
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by www.ccl.net id MAA21433




On Mon, 22 Feb 1999 you wrote:

>Could someone tell me how to call a FORTRAN subroutine in a C program
>on SGI workstation or PC ?

- C and Fortran compiler need to generate same object file format.
- You might need to append an "_" to all Fortran names in C, try it out.
- All parameters are passed by address !
- arrays are sorted differently, ask again if you need to pass arrays !

Greetings,
Jochen
-----------------------------------------------------------------------
  Jochen Küpper

  Heinrich-Heine-Universität Düsseldorf     jochen@uni-duesseldorf.de
  Institut für Physikalische Chemie I
  Universitätsstr. 1, Geb 26.43 Raum 02.29     phone ++49-211-8113681
  40225 Düsseldorf                             fax   ++49-211-8115195
  Germany             http://www-public.rz.uni-duesseldorf.de/~jochen
-----------------------------------------------------------------------


