This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: beginner a.out question.
- To: gcc-help at gcc dot gnu dot org, phil at advancedarchitecture dot org
- Subject: Re: beginner a.out question.
- From: "Biju Arjunan" <bijuarjunan at lycos dot com>
- Date: Tue, 28 Aug 2001 02:25:48 +0530
- Organization: Lycos Mail (http://mail.lycos.com:80)
- Reply-To: bijuarjunan at lycos dot com
Hi,
the problem may be the path setting.
try to run
[phil@localhost dir]./a.out
ie forcing the shell to run the a.out that is residing in the current directory.
you can set the PATH in the profile so that the shell will search for the command
from the current directory
export PATH=.:$PATH
Thanks,
bijua
On Mon, 27 Aug 2001 16:37:21
Phil Taylor wrote:
>Background: new installation of redhat 7.1 on pentium 90. In bash.
>
>When trying to compile beginner C source code (hello.c) I get an
>output "a.out" that will not run.
>
>xxxxxxxcommandlinequotationsxxxxxxxxxx
>
>[phil@localhost dir]a.out
>bash: a.out: command not found
>
>xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
>
>I do not understand my problem here: the command is right there in the
>directory ("ls" = a.out and other files). I have not done any special
>setting up of gcc to run on my machine. If I need to do some kind of
>configuration I could really use a couple hints on how to get started. I
>feel quite confused about where gcc resides on my machine and generally how
>I manipulate it (besides through the command line options).
>
>Sincerely, Phil
>
>(thank you, and my apologies if this msg. is inappropriate.)
>
Get 250 color business cards for FREE!
http://businesscards.lycos.com/vp/fastpath/