public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* RE: compiling
@ 2005-11-07 15:05 Fox_Conor
  2005-11-08  8:52 ` compiling Pierre-Matthieu anglade
  0 siblings, 1 reply; 5+ messages in thread
From: Fox_Conor @ 2005-11-07 15:05 UTC (permalink / raw)
  To: kandy.s.jarvis1, gcc-help

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
> 
> 
> 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: compiling
  2005-11-07 15:05 compiling Fox_Conor
@ 2005-11-08  8:52 ` Pierre-Matthieu anglade
  0 siblings, 0 replies; 5+ messages in thread
From: Pierre-Matthieu anglade @ 2005-11-08  8:52 UTC (permalink / raw)
  To: kandy.s.jarvis1, gcc-help

What happens when you try to execute your band.exe?
What is the error message?

Two frequent error:
-if you try:
> f77 -o band.exe *.f
then
> band.exe
the file may not be found.
try
> ./band.exe

On some system your compiler is not compatible with the defaults
runtime libs. (it is the cas with my redhat fc4 :-( )
Then you migh which to do:
> f77 -static  -o band.exe *.f
> ./band.exe

--
Pierre-Matthieu Anglade

^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: compiling
@ 2005-11-08 14:55 JARVIS, KANDY S. (JSC-KX) (ESCG)
  0 siblings, 0 replies; 5+ messages in thread
From: JARVIS, KANDY S. (JSC-KX) (ESCG) @ 2005-11-08 14:55 UTC (permalink / raw)
  To: 'Pierre-Matthieu anglade', gcc-help

Yes, advice from another user took me down that same path.  Indeed it isn't
a compiling issue but rather that my home directory is not in the path.
Thank you for your suggestion though! 

-----Original Message-----
From: Pierre-Matthieu anglade [mailto:pierre.matthieu.anglade@gmail.com] 
Sent: Tuesday, November 08, 2005 2:52 AM
To: JARVIS, KANDY S. (JSC-KX) (ESCG); gcc-help@gcc.gnu.org
Subject: Re: compiling

What happens when you try to execute your band.exe?
What is the error message?

Two frequent error:
-if you try:
> f77 -o band.exe *.f
then
> band.exe
the file may not be found.
try
> ./band.exe

On some system your compiler is not compatible with the defaults runtime
libs. (it is the cas with my redhat fc4 :-( ) Then you migh which to do:
> f77 -static  -o band.exe *.f
> ./band.exe

--
Pierre-Matthieu Anglade

^ permalink raw reply	[flat|nested] 5+ messages in thread

* compiling
@ 2005-11-07 14:43 JARVIS, KANDY S. (JSC-KX) (ESCG)
  0 siblings, 0 replies; 5+ messages in thread
From: JARVIS, KANDY S. (JSC-KX) (ESCG) @ 2005-11-07 14:43 UTC (permalink / raw)
  To: 'gcc-help@gcc.gnu.org'


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



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Compiling
@ 2003-02-08 17:27 Dockeen
  0 siblings, 0 replies; 5+ messages in thread
From: Dockeen @ 2003-02-08 17:27 UTC (permalink / raw)
  To: gcc-help

Why do you want 3.0?  Shouldn't that be 3.2x?

Wayne

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-11-08 14:55 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-11-07 15:05 compiling Fox_Conor
2005-11-08  8:52 ` compiling Pierre-Matthieu anglade
  -- strict thread matches above, loose matches on Subject: below --
2005-11-08 14:55 compiling JARVIS, KANDY S. (JSC-KX) (ESCG)
2005-11-07 14:43 compiling JARVIS, KANDY S. (JSC-KX) (ESCG)
2003-02-08 17:27 Compiling Dockeen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).