From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,de9de2f8fd1d9bb,start X-Google-Attributes: gidfee84,public From: francois CARTIER Subject: passing between C and Fortran Date: 1995/11/14 Message-ID: <48aa3t$9im@news.cea.fr>#1/1 X-Deja-AN: 119366883 organization: CEA Commissariat a l'Energie Atomique, France. newsgroups: comp.unix.osf.osf1 Hi, I have a C program calling Fortran functions, and inside the Fortran, i need to call some C functions. My programs comes from HPUX and i have to compile it on OSF1. But the f77 compiler isn't very happy with my source file.. any help ? >>> file main.c <<< main() { essaifort(); } >>> file fortran.F <<< $ALIAS recupfort='recupfort'(%val) integer function essaifort() integer ii=123 call recupfort(ii) return end >>> file c2.c <<< #include void recupfort(ic) int *ic; { printf(" ic arg = %d\n",ic); } And the compiler response is... $ALIAS recupfort='recupfort'(%val) ^ fort: Severe: argFort.F, line 1: Missing operator or delimiter symbol I wonder that my $ALIAS is not known by OSF1, but what else ? Any help will be appreciated ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Francois CARTIER | /| |~) /~\ |~) /| ~|~ /~\ | |~) |_~ cartier@lcus15.saclay.cea.fr |__/~| |_) \_/ |~\ /~| | \_/ | |~\ |__ CEA - CEREM |~\ |_~ /~` /~\ |\| ~|~ |~) /~\ | |_~ |~) /| |~) Service des |_/ |__ \_, \_/ | | | |~\ \_/ |__ |__ | /~| |~\ Techniques Avancees LCUS | | | ~|~ |~) /| (~ /~\ |\| (~ 91191 Gif sur Yvette FRANCE |_| |__ | |~\ /~| _) \_/ | | _) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~