Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!elroy.jpl.nasa.gov!swrinde!ucsd!ucbvax!MASIG2.OCEAN.FSU.EDU!davis From: davis@MASIG2.OCEAN.FSU.EDU (Alan Davis) Newsgroups: comp.sys.sgi Subject: mkf2c problems Message-ID: <9012111411.AA03477@masig2.ocean.fsu.edu> Date: 11 Dec 90 14:11:15 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 31 I am coding up some routines in C that I need to make accessable to the rest of our researchers that only program in the F------ language. There are a couple of things that I would like to do and TFMs say I should be able to do, but unfortunately do not seem to work. First, in Sec. 3.2.1 of the FORTRAN 77 Programmer's guide it states in a Note that mkf2c has an option for letting function names contain an underscore, but not such option appears to exist and mkf2c complains about it when you try to insert one. Second, I am passing some floating point arguments that I want to prevent from being promoted to double. mkf2c has an -f flag to do just that, but TFM says that you should use function prototypes in the C routine. When I do this mkf2c also complains about a syntax error. If I write the C routine in the old style and use mkf2c with the -f flag the type conversion does appear to be prohibited, but this causes the C routine to be written without a prototype which I would like to avoid. My way out was to code a small fortran wrapper routine without the prototype which in turn calls the real C routine which I wrote with prototyping resulting in two function calls from Fortran. Does anybody have any experience with either of these two bugs. I am running a 320 VGX with 3.3.1. ps. Does anyone know the release date of 3.3.2, as I need it to fix a problem in the gl library on the VGX? -- Alan Davis | MS B-174, Love 008A | Mesoscale Air-Sea Interaction Group | INTERNET davis@masig1.ocean.fsu.edu Florida State University | SPAN scri1::davis Tallahassee, FL 32306-3041 | (904) 644-3798 | _______________________________________________________________________________