DanSandbergUCONN
Programmer
Hi all - I'm an intermediate programmer in many langauges but I'm just beginning to explore Fortran. My goal is to take a Fortran source code written on a PC and recompile it in a Mac to make a mac-compatible version of the program.
Before I even get into the issue with all that, I'm starting with the ABC basics and trying to write the typical "Hello World" program. I am using Absoft Pro Fortran 90/95 as a compiler and they have example programs to practice compilation. I select create a new MRWE file and then I have added their pre-written "Hello_ex.f95" function to my list of files and then added the following code to the main function:
Program hello
call Hello_ex()
stop
End Program hello
All this was outlined in the User Guide pdf. I compile the program and get a message that compilation was sucessful. However, when I execute the program in Absoft a message comes up that says, "Program finished and returned code 0". If I double-click the application I created then a window opens and closes instantly and that's it. What am I doing wrong? How do I fix this?
Before I even get into the issue with all that, I'm starting with the ABC basics and trying to write the typical "Hello World" program. I am using Absoft Pro Fortran 90/95 as a compiler and they have example programs to practice compilation. I select create a new MRWE file and then I have added their pre-written "Hello_ex.f95" function to my list of files and then added the following code to the main function:
Program hello
call Hello_ex()
stop
End Program hello
All this was outlined in the User Guide pdf. I compile the program and get a message that compilation was sucessful. However, when I execute the program in Absoft a message comes up that says, "Program finished and returned code 0". If I double-click the application I created then a window opens and closes instantly and that's it. What am I doing wrong? How do I fix this?