Find the answer to your Linux question:
Results 1 to 3 of 3
I am a fortran and Linux newbie! I am simply trying to start from scratch with a hello world programme which i have in a text editor. Could someone please ...
  1. #1
    Just Joined!
    Join Date
    May 2009
    Posts
    5

    Fortran in Linux

    I am a fortran and Linux newbie!

    I am simply trying to start from scratch with a hello world programme which i have in a text editor. Could someone please tell me what the command line would be to compile such a file? I've programmed in C before and there I've used

    cc filename

    to compile.

    What would be the equivalent in fortran. I have access to GNU and Intel compilers. Please help!

  2. #2
    Linux Enthusiast gerard4143's Avatar
    Join Date
    Dec 2007
    Location
    Canada, Prince Edward Island
    Posts
    714
    Try:

    g77 filename.f -o filename
    Make mine Arch Linux

  3. #3
    Just Joined!
    Join Date
    May 2009
    Posts
    5
    Thanks for the prompt reply! It appears to have compiled without any errors!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...