TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: PETER PERCIVAL
from: GI-TUX
date: 2018-07-05 06:28:00
subject: Re: a.out problem

On Thursday, July 5, 2018 at 8:22:08 AM UTC-5, Peter Percival wrote:
> I wrote a "Hello world" program in C.
>
> gcc hello.c
>
> creates a.out without warnings or error messages.  ls shows that a.out
> exists.
>
> a.out
>
> gets the response
>
> -bash: a.out: command not found

Try './a.out'.  It is likely that '.' is not in your path.

--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.