Sorry if this is the wrong forum, such a basic question.
I’ve written the canonical fortran program that writes “hello world”.
I’ve installed gfortran, compiled my hello.f, and get a.out.
How do you execute a.out?
Thank you.
Sorry if this is the wrong forum, such a basic question.
I’ve written the canonical fortran program that writes “hello world”.
I’ve installed gfortran, compiled my hello.f, and get a.out.
How do you execute a.out?
Thank you.
Let me assume you are in the directory where a.out is, then type
../a.out
–
PC: oS 11.4 x86_64 | Intel Core i7-2600@3.40GHz | 16GB | KDE 4.6.0 |
GeForce GT 420
Eee PC 1201n: oS 12.1 x86_64 | Intel Atom 330@1.60GHz | 3GB | KDE 4.8.1
| nVidia ION
eCAFE 800: oS 12.1 i586 | AMD Geode LX 800@500MHz | 512MB | KDE 3.5.10 |
xf86-video-geode
Er, um, uh, arg… Martin’s instructions are correct, however he has one too many dots. From the directory where a.out resides, try:
./a.out
Am 12.03.2012 02:06, schrieb gldickens3:
>
> Er, um, uh, arg… Martin’s instructions are correct, however he has
> one too many dots. From the directory where a.out resides, try:
>
>> ./a.out
>
>
Thank you, no idea where the second dot came from.
–
PC: oS 11.4 x86_64 | Intel Core i7-2600@3.40GHz | 16GB | KDE 4.6.0 |
GeForce GT 420
Eee PC 1201n: oS 12.1 x86_64 | Intel Atom 330@1.60GHz | 3GB | KDE 4.8.1
| nVidia ION
eCAFE 800: oS 12.1 i586 | AMD Geode LX 800@500MHz | 512MB | KDE 3.5.10 |
xf86-video-geode
On 2012-03-12 02:07, Martin Helm wrote:
> Thank you, no idea where the second dot came from.
On the nntp side there is only one dot :-?
–
Cheers / Saludos,
Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)
@rih53342. And you should of course check if it has the execute bit set for that file.
And you could of course put it in the bin directory that is normaly in your home directory, which is in your PATH environment variable and thus allows you to just call
a.out
And I advise you to give your program a proper name with the option the compiler has for it, because to have a buch of programs all having the intrigueing name* a.out* will give you problems some time in the future.