Fortran How to Compile Fortran Code on Mac and Unix Systems?

AI Thread Summary
The discussion centers on issues encountered when compiling Fortran code files on different operating systems. The user successfully compiles and runs the code on Windows XP using gfortran but faces errors related to structure type pointers when attempting to compile and run the same code on Mac OS X 10.6 with gfortran 4.2.1. The user seeks assistance from the community to compile these files under Unix or Mac, providing the source code files for help. The main focus is on resolving compatibility issues and errors arising from differences in how gfortran handles pointers in structure types across operating systems.
qinjie1629
Messages
2
Reaction score
0
I have several fortran code files which can be correctly compiled and run in Windows XP using gfortran. But, when I use the gfortran 4.2.1 compile these files on Mac(10.6), the code files can be compiled, but, it reports errors when I run the compiled file.

the error is related to the pointer of a structure type of data.

Can you gus compile these files for me under Unix or Mac.
 
Technology news on Phys.org
here is the source code files (4 files). anyboby help?
 

Attachments

Dear Peeps I have posted a few questions about programing on this sectio of the PF forum. I want to ask you veterans how you folks learn program in assembly and about computer architecture for the x86 family. In addition to finish learning C, I am also reading the book From bits to Gates to C and Beyond. In the book, it uses the mini LC3 assembly language. I also have books on assembly programming and computer architecture. The few famous ones i have are Computer Organization and...
I had a Microsoft Technical interview this past Friday, the question I was asked was this : How do you find the middle value for a dataset that is too big to fit in RAM? I was not able to figure this out during the interview, but I have been look in this all weekend and I read something online that said it can be done at O(N) using something called the counting sort histogram algorithm ( I did not learn that in my advanced data structures and algorithms class). I have watched some youtube...

Similar threads

Replies
5
Views
2K
Replies
1
Views
4K
Replies
3
Views
5K
Replies
8
Views
2K
Replies
2
Views
2K
Back
Top