Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!bbn!oberon!cit-vax!ucla-cs!zen!ucbvax!decvax!dartvax!uvm-gen!haviland From: haviland@uvm-gen.UUCP (Tom Haviland) Newsgroups: comp.sys.ibm.pc Subject: Mixed language programs Message-ID: <582@uvm-gen.UUCP> Date: Thu, 24-Sep-87 10:28:04 EDT Article-I.D.: uvm-gen.582 Posted: Thu Sep 24 10:28:04 1987 Date-Received: Sun, 27-Sep-87 09:52:39 EDT Organization: EMBA Computer Facility, Univ. of Vermont, Burlington. Lines: 26 I have an interesting problem I wonder if anyone out there might have experienced. I'm writing a menu system to go with a fortran modelling package, and since supposedly microsoft C and FORTRAN work together, I wrote the menu system in C. I've set up an INTERFACE block in the fortran program to call the C routines, and it seems to call the routine ok, but when the C routine calls the fscanf() function, reading floating point numbers from a file (%f) I get an error "Floating point not loaded" and the program stops. Now the C routines do some floating point calculations before this point and that works ok. Also, fscanf() works ok reading integers. I'm doing this on an AT&T 6300 with an 8087. In the FORTRAN routines the $nofloatcalls option is on (generate 8087 inline code), and I've tried compiling the C routines with several different floating point options (FPi, FPi87, FPc), but I still get this error. Does anyone out there have any idea whats going on? Thanks for any help Tom -- Thomas P. Haviland USENET: decvax!dartvax!uvm-gen!haviland University of Vermont CSNET: haviland%uvm@csnet-relay (802) 656-2540 "Knowledge is no substitute for retractability"