Help! Running Fortran program with Xcode
Hi all,
I am developing a Fortran code for a class project, I understand Matlab, but very little of advanced programming like Fortran or C++, but have to learn some for my class (note: it is not a programming class). The professor gave us a code to run and modify it, the code is supposed to work (and in fact it is working on windows computers). I didn't know how to run Fortran on a mac so I followed the instructions given in these links:
http://www.macresearch.org/xcodegfortran_contest_winner_damienbobillot
http://lists.apple.com/archives/fortran-dev/2006/Mar/msg00011.html
I installed Xcode 2.4, and gfortran. After I made my Project on Xcode (following the links above), I clicked Build and it was successful, but after I clicked Build and Go I got the following error:
Warning:Array reference at (1) is out of bounds
Command/usr/local/bin/gfortran failed with exit code 1
I don't know what does that mean. Can anyone help me with this?
I would like some easy-to-follow instructions to run a Fortran program with Xcode, starting from the basics.
It is hard to find an easy compiler for mac, PC people have qFortran (for free at at school) and things like that where you just have to click compile and that is it.
Thanks!
lbml
I am developing a Fortran code for a class project, I understand Matlab, but very little of advanced programming like Fortran or C++, but have to learn some for my class (note: it is not a programming class). The professor gave us a code to run and modify it, the code is supposed to work (and in fact it is working on windows computers). I didn't know how to run Fortran on a mac so I followed the instructions given in these links:
http://www.macresearch.org/xcodegfortran_contest_winner_damienbobillot
http://lists.apple.com/archives/fortran-dev/2006/Mar/msg00011.html
I installed Xcode 2.4, and gfortran. After I made my Project on Xcode (following the links above), I clicked Build and it was successful, but after I clicked Build and Go I got the following error:
Warning:Array reference at (1) is out of bounds
Command/usr/local/bin/gfortran failed with exit code 1
I don't know what does that mean. Can anyone help me with this?
I would like some easy-to-follow instructions to run a Fortran program with Xcode, starting from the basics.
It is hard to find an easy compiler for mac, PC people have qFortran (for free at at school) and things like that where you just have to click compile and that is it.
Thanks!
lbml
iBook G4, Mac OS X (10.4.11)