RE: compiling

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxx 
> [mailto:gcc-help-owner@xxxxxxxxxxx] On Behalf Of JARVIS, 
> KANDY S. (JSC-KX) (ESCG)
> Sent: 07 November 2005 14:44
> To: 'gcc-help@xxxxxxxxxxx'
> 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
> 
> 
> 

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux