home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / lang / fortran / 5196 < prev    next >
Encoding:
Text File  |  1993-01-27  |  1.9 KB  |  45 lines

  1. Newsgroups: comp.lang.fortran
  2. Path: sparky!uunet!europa.eng.gtefsd.com!paladin.american.edu!howland.reston.ans.net!spool.mu.edu!uwm.edu!cs.utexas.edu!hermes.chpc.utexas.edu!michael
  3. From: michael@chpc.utexas.edu (Michael Lemke)
  4. Subject: Re: compiling FORTRAN IV on Unix f77
  5. Message-ID: <1993Jan27.210443.25080@chpc.utexas.edu>
  6. Organization: The University of Texas System - CHPC
  7. References: <1k6e6cINNmqo@bigboote.WPI.EDU>
  8. Date: Wed, 27 Jan 93 21:04:43 GMT
  9. Lines: 34
  10.  
  11. In article <1k6e6cINNmqo@bigboote.WPI.EDU> bugsy@yoyodyne.WPI.EDU (Christopher Sean Moran) writes:
  12. >Help me... I have a program called VORLAX which I need to compile.
  13. >It was written and compiled originally on CDC FORTRAN IV.  All
  14. >I have access to is Unix f77.  I have tried to compile it, but
  15. >its a no go.  One problem is the first line
  16. >
  17. >PROGRAM VORLAX(INPUT,OUTPUT, etc)
  18. >
  19.  
  20. You can drop this line; INPUT, OUTPUT simply means the program reads 
  21. from stdin and writes to stdout on units 5 and 6.  Too bad you didn't 
  22. give the etc, I suppose it is something like TAPE7=FOO or so, which is 
  23. equivalent to OPEN( 7, FILE = 'FOO' ).  Also beware of the crazy `file' 
  24. structure on CDCs where you have several files in a file ;-), i.e., you 
  25. can read beyond EOF and get more data.  Check if your code does anything
  26. with END=label on READs.
  27.  
  28. >the compiler doesnt like the parenthesis after the program 
  29. >declaration.  Past that there are no other problems.
  30. >
  31. >I do get an executable after compiling if I take the stuff
  32. >in the parenthesis out. But UNIX dumps my core every time
  33. >I run the program.  Can anyone help me?
  34.  
  35. Can you give a little more information?  Sometimes even Unix error
  36. messages give a little more information.  Also try to compile -g (debug,
  37. check you f77 man page for the correct switch) than a traceback might
  38. have a line number in it.
  39.  
  40. Michael
  41. -- 
  42. Michael Lemke
  43. Astronomy, UT Austin, Texas
  44. (michael@io.as.utexas.edu or UTSPAN::UTADNX::IO::MICHAEL [SPAN])
  45.