Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

LInux fortran to windows

  1. Nov 19, 2008 #1
    I have a code that was written with a Linux FORTRAN compiler but is 'portable'. does this mean I am able to compile it on a windows compiler?
  2. jcsd
  3. Nov 19, 2008 #2


    User Avatar
    Science Advisor
    Homework Helper

    Yes, Fortran is pretty portable anyway since you don't normally do much system level stuff.
    The main portability issue with Fortran is compiler specific extentions.
    If you wrote it on Linux you presumably used the GNU compiler? If you use the same compiler on windows it shoudl work out of the box.
  4. Nov 19, 2008 #3
    I will have to look at that one. Is FORTRAN in window relatively easy to set up. I heard GCC make good compilers..?
  5. Nov 29, 2008 #4
    The MinGW compiler is a GCC for Windows. It has g77 and is basically like compiling FORTRAN in Linux.
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook