Running a gFortran job and debugging options
I am migrating from Windows Microsoft Powerstation Fortran to gFortran on Ubuntu8.10, and am new to both Linux and gFortran. As a test I used vi to write a simple program to read a line of text from one file and write it to an output file. Compilation via gFortran went OK, with no logged errors and an executable file showing from the ls command. The seemingly trivial question is: how do I run the program? I tried typing the name of the executable and giving a carriage return: got the response command not found.
My second question: do the debug options under gcc also apply to gFortran? |
Quote:
Quote:
You should use the command: Code:
./my-new-g77-program<CR> As for the compiler's debugging options, I can't help you there; I haven't written any new FORTRAN code in over a decade and none under Linux. I would hope that the debugging code would be nice enough to point back to a line of the FORTRAN source code when things go south at runtime. Otherwise, it'd seem pretty useless. But that's just a guess. Have you read the manpage for the compiler? Good luck... -- RT |
All times are GMT -5. The time now is 01:37 AM. |