home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!spool.mu.edu!hri.com!snorkelwacker.mit.edu!bloom-beacon!INTERNET!dont-send-mail-to-path-lines
- From: mahan@TGV.COM (Patrick L. Mahan)
- Newsgroups: comp.windows.x
- Subject: RE: X-perts! need assistance w/ Xlib calls from FORTRAN.
- Message-ID: <920915095450.4a20014b@TGV.COM>
- Date: 15 Sep 92 16:54:50 GMT
- Sender: daemon@athena.mit.edu (Mr Background)
- Organization: The Internet
- Lines: 30
-
- #
- # I have decided to try to see if I can port a VAX/VMS FORTRAN
- #Xlib program to a Sun SPARCstation IPC using SunOS 4.1.2, OpenWindows
- #3.0, and Sun FORTRAN 1.4. Is there any chance?
- #
- # The VAX FORTRAN code used the VAX bindings of the Xlib calls
- #(X11R3, I think). I will need the X11 include files as a start. I have
- #looked through my /usr/openwin/include/X11 directory and have not found
- #anything yet. If I had used the VAX MIT/C bindings on the VMS side,
- #would I fare any better? I am not familiar with any other examples of
- #Xwindow calls from FORTRAN outside of the VAX examples I have.
- #
- # Besides a suggestion to re-write completly in C, does anyone
- #have a comments?
- #
-
- Rick,
-
- You are pretty much out of luck with porting this code to other platforms.
- Only Digital has (as far as I know a Fortran interface to X). You could
- try to convert the .h files to Fortran include files and call the C Xlib
- routines directly. Otherwise, it just maybe wiser to switch to C.
-
- Patrick L. Mahan
-
- --- TGV Window Washer ------------------------------- Mahan@TGV.COM ---------
-
- Waking a person unnecessarily should not be considered - Lazarus Long
- a capital crime. For a first offense, that is From the Notebooks of
- Lazarus Long
-