Xref: utzoo comp.lang.c:14947 comp.lang.fortran:1638 Path: utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!rutgers!mcnc!thorin!unc!singh From: singh@unc.cs.unc.edu (Raj Kumar Singh) Newsgroups: comp.lang.c,comp.lang.fortran Subject: Interfacing FORTRAN with C Keywords: FORTRAN, C, Interprocedure calls Message-ID: <5962@thorin.cs.unc.edu> Date: 20 Dec 88 15:39:42 GMT Sender: news@thorin.cs.unc.edu Lines: 46 I think this question has been brought up before and so I would like to exchange info with some one who can provide helpful pointers on the issue of interprocedure calls between C program and FORTRAN routines. The specifics are as follows: System: VaxStation-3200 running Ultrix-2.1. C-program {tt.c} ******************************* #include main() { extern void hello_(); hello_(); } ******************************* FORTRAN routine {hello.f} ******************************* subroutine hello() print *, "Hello world" return end ******************************* This compiles without error on a Vaxes but on execution does not print the message "hello world". On the other hand, the same program when compiled and run on Sun-3s and 4s works fine. Can someone provide more insight into this problem? Is there anything special that I need to do on Ultrix system in terms of loading? Any help will be much appreciated. Thanx !!! ------------------------------------------------------------ Raj Kumar Singh singh@cs.unc.edu (919) 962-1744