Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 1 Jun 1997 00:51:17 -0500 (EST)
From:      "John S. Dyson" <toor@dyson.iquest.net>
To:        andrejs@crl.com
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: a.out programs are not executable!  cant run any programs..
Message-ID:  <199706010551.AAA00168@dyson.iquest.net>
In-Reply-To: <3390380B.6A28@crl.com> from Andrejs Vanags at "May 31, 97 09:40:04 am"

next in thread | previous in thread | raw e-mail | index | archive | help
> Hi, I just bought FreeBsd 2.2.1 from Walnut Creek Cdrom.
> 
> I installed it and even recomplied the kernel with no problems.
> However if I try to compile a simple hello.c program with gcc, the
> result is a.out. If I type a.out it says command not found. If I say
> file a.out it  says it is a:
> BSD/i386 compact demand paged dynamically linked executable not
> stripped. If I do file gcc it says the same but without the not stripped
> part, so I recompiled gcc -s hello.c, got a.out and still doesnt work.
> 
Of course, you will likely have to type "./a.out".  The other trick
is to be careful about naming your program "test".  The shell often uses
that as a builtin command name :-).  That one still gets me once in a
while :-).

John



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199706010551.AAA00168>