LInux fortran to windows

  • Fortran
  • Thread starter NoobixCube
  • Start date
  • #1
155
0
Hi,
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?
 

Answers and Replies

  • #2
mgb_phys
Science Advisor
Homework Helper
7,774
13
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.
 
  • #3
155
0
I will have to look at that one. Is FORTRAN in window relatively easy to set up. I heard GCC make good compilers..?
 
  • #4
The MinGW compiler is a GCC for Windows. It has g77 and is basically like compiling FORTRAN in Linux.
 

Related Threads on LInux fortran to windows

  • Last Post
2
Replies
38
Views
2K
  • Last Post
Replies
3
Views
3K
Replies
8
Views
6K
Replies
27
Views
7K
Replies
1
Views
3K
Replies
2
Views
14K
Replies
1
Views
2K
Replies
4
Views
13K
Replies
4
Views
69K
Top