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

Click For 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

Learn If you want to write code for Python Machine learning, AI Statistics/data analysis Scientific research Web application servers Some microcontrollers JavaScript/Node JS/TypeScript Web sites Web application servers C# Games (Unity) Consumer applications (Windows) Business applications C++ Games (Unreal Engine) Operating systems, device drivers Microcontrollers/embedded systems Consumer applications (Linux) Some more tips: Do not learn C++ (or any other dialect of C) as a...

Similar threads

  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 29 ·
Replies
29
Views
3K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 4 ·
Replies
4
Views
1K
  • · Replies 2 ·
Replies
2
Views
3K
Replies
6
Views
3K
  • · Replies 3 ·
Replies
3
Views
5K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K