home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / windows / x / 16700 < prev    next >
Encoding:
Internet Message Format  |  1992-09-15  |  1.6 KB

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