[comp.windows.x] FORTRAN bindings for X

jfmjfm@caen.engin.umich.edu (John Mansfield) (08/24/90)

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

nancie@hal.CSS.GOV (Nancie Matson) (03/14/91)

I would be interested in any information about FORTRAN bindings
to X toolkits.  Does anything like this currently exist?

If so, I would like to know which toolkits can support them, and
where to find some source.  

Please e-mail and I will post a summary if there is any interest.

Thanks!!


---------------------------------------------------------------
Nancie P. Matson    NET:  nancie@hal.CSS.GOV
ENSCO INC.          MAIL: 445 Pineda Ct.  Melbourne, Fl.  32940
---------------------------------------------------------------

dhuff@tog-1g.hac.COM (Daryl Huff) (06/08/91)

Has anyone seen or heard of a FORTRAN binding for X.  I know there are 
ada bindings for Xlib and am hoping there may exist FORTRAN bindings as
well.  Any info would be helpfull.

Thanks,
Daryl Huff
Hughes Aircraft Co.

pd@x.co.uk (Paul Davey) (06/11/91)

Apollo Computer used to provide Pascal and FORTRAN Xlib bindings. I
don't know if this has been continued or extended to Xt and Motif. 

Perhaps someone at HP's Apollo division can help?
--
 Regards,			 pd@x.co.uk          IXI Limited
	Paul Davey		 pd@ixi.uucp         62-74 Burleigh St.
				 ...!uunet!ixi!pd    Cambridge  U.K.
 "These are interesting times"   +44 223 462 131     CB1  1OJ      
				 USA: 1 800 XDESK 57

wemst7@unix.cis.pitt.edu (William E Madden) (06/11/91)

Our version of X here at Pitt doesn't have any fortran bindings, 
and we're running the current Apollo version (SR 10.3).

We are, however, very interested in getting fortran libraries for X.
(Don't ask me why - I just work here. :-)  If anyone knows of any that 
are supplied, or where we can get them, please either post to this group,
or mail me.

Thanks in advance.
	Bats

------------------------------------------------------------------------------
#include <stddisclaimer.h>

Even I won't admit to holding any opinions stated or implied in this message,
so why should the University of Pittsburgh, Presbyterian University Hospital,
Starfleet Command, or any of my ex-girlfriends get blamed for them?

Bill Madden
wemst7@unix.cis.pitt.edu  <-- any other adress will bounce.
-------------------------------------------------------------------------------

rjb@ipsa.reuter.com (Ron Bodkin) (06/14/91)

In article <PD.91Jun10170410@powys.x.co.uk> pd@x.co.uk (Paul Davey) writes:
>Apollo Computer used to provide Pascal and FORTRAN Xlib bindings. I
>don't know if this has been continued or extended to Xt and Motif. 
>
>Perhaps someone at HP's Apollo division can help?
     For that matter, how about LISP bindings for, say, AKCL or some
other lisp/scheme dialect?  I know that winterp offers at least one LISP
interface to X; are there others?
               Ron