This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
RE: compiling
- From: Fox_Conor at emc dot com
- To: kandy dot s dot jarvis1 at jsc dot nasa dot gov, gcc-help at gcc dot gnu dot org
- Date: Mon, 7 Nov 2005 15:03:37 -0000
- Subject: RE: compiling
I'm guessing you're more of a Windows user, so humour me when I ask:
Is the 'executable bit' set on band.exe ?
Try 'ls -l band.exe'. You may see something like:
-rw-rw-rw- 1 others others 6243 Oct 28 13:51 band.exe
Now try 'chmod a+x band.exe' and then repeat the ls command, hopefully
you'll get something more like:
-rwxrwxrwx 1 others others 6243 Oct 28 13:51 band.exe
The x characters mean that the file is now executable by you, your group and
everyone else. Or something like that: my Unix is woefully rusty.
Further caveat: my hazy recollection is that compilers on Linux (and other
Unixes) set the x bit by default on the executable files they create. So
I'm doubting my own suggestion.
> -----Original Message-----
> From: gcc-help-owner@gcc.gnu.org
> [mailto:gcc-help-owner@gcc.gnu.org] On Behalf Of JARVIS,
> KANDY S. (JSC-KX) (ESCG)
> Sent: 07 November 2005 14:44
> To: 'gcc-help@gcc.gnu.org'
> Subject: compiling
>
>
> I've never used the g77 compiler before. I have a program that I can
> compile with absoft fortran. I need to compile with g77 on a
> linux system.
> I can't figure out how to get the exe.
>
> I tried f77 -O band1105.f and get an a.out file
> I tried f77 -o band.exe band1105.f and get band.exe but it
> doesn't run.
>
> Help! What are the command lines I need to generate an executable?
>
> Thanks. Sorry for my stupidity.
>
> Kandy S. Jarvis
> ESCG/Hamilton Sundstrand
> P.O. Box 58447
> Houston, TX 77258-8447
> Attn: Kandy Jarvis, MC: JE104
>
> 281-483-5165/281-483-0817
> Fax 281-244-5031
>
>
>