Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uunet!samsung!sdd.hp.com!caen!jfmjfm From: jfmjfm@caen.engin.umich.edu (John Mansfield) Newsgroups: comp.windows.x Subject: Re: Fortran Bindings for X Message-ID: <1990Aug23.202139.5540@caen.engin.umich.edu> Date: 23 Aug 90 20:21:39 GMT Sender: news@caen.engin.umich.edu (CAEN Netnews) Organization: University of Michigan Engineering, Ann Arbor Lines: 82 In reply to my recent question about Fortran bindings for X-Windows I got the following replies, not a hopeful list but better than nothing. Thanks to all who responded. From: dob@inel.gov (David L. Brooks) I can't believe i would actually suggest this.. but you might try DECWindows. it seems like there is a fortran 77 binding library and header files, or at least that's what i recall before i purged it off this decstation. i don't know if there is another good source for the binding... perhaps if you find it, you might post? regards, dlb From: khb@Eng.Sun.COM (Keith Bierman - SPD Advanced Languages) f77v1.3 came with xview bindings for OpenWindows 1.0. From: ne201ph@prism.gatech.edu (Halvorson,Peter J) Being a `scientific programmer' doesn't excuse you from learning C, but that's not the point. I have the User's Guide for Sun Fortran 1.3 ( although I don't yet have fortran 1.3), in the back of this manual there is a ten page appendix describing a fortran interface for XView. There are header files, and an intermediate library that converts fortran calls to C calls. I'm not sure whether this library comes with X11r4, OpenWindows, or Fortran. From: oliveria@caen.engin.umich.edu (ROQUE DONIZETE DE OLIVEIRA) I really haven't used fortran with X11. Some vendors (like Apollo, Dec and Ardent(I think)) provide what is called fortran bindings for X11. If your system (like suns) don't have it then you would have to create the binding yourself. The binding is written in C. An example can be found in the XGKS package on the apollos, in /usr/um/xgks/src/fortran. Suppose you want to use the X11 call XDrawString . You would write a little piece of C code, say, myXDrawString_ that would call XDrawString. The problem is all those arguments that the X routines need. I believe if you look in the code in /usr/um/xgks/src/fortran you will get the idea. It is not an easy task. The best thing is to use a vendors implementation of X11 fortran bindings, if available, or a package (in this case XGKS) that has fortran bindings. As far as I know, MIT X11 release doesn't have fortran bindings. To get a better answer you could pose your question to the usenet newsgroup comp.windows.x . Sorry I can't be more helpful. Roque From: rhoward@msd.gatech.edu My Fortran v1.3 manual has Appendix C "XView Toolkit" which talks about the Fortran interface to the XView toolkit (which of course is really written in C). I haven't done it but it seems straight forward. >Also please no flames about having to learn C. I dont know C and I >dont have time to learn. Same here! Hope this helps, Robert From: shyam%uunet.uu.net%leebai.uucp%atc1@caen.engin.umich.edu (Shyam Mittur) I don't think there is a FORTRAN binding for XLib or Xt, and I don't think anyone plans to come up with one. What you should probably be looking at is GKS (if 2D is good enough) or PHIGS (if you need all the baggage in it). We at ATC sell GRAFPAK-GKS, with X-Window system support. If you are interested, please send me mail or contact our Sales Dept at (714)-583-9119. GKS and its FORTRAN binding are an ANSI standard. SHYAM MITTUR