Date: Sat, 15 Jan 2000 13:38:41 +0000 From: George Cox <gjvc@extremis.demon.co.uk> To: "Ray D. Davis" <snoopy@mail.airmail.net> Cc: freebsd-questions@freebsd.org Subject: Re: How to run compiled program Message-ID: <20000115133841.B4684@extremis.demon.co.uk> In-Reply-To: <4.2.0.58.20000114193450.00a3dcf0@mail.airmail.net>; from snoopy@mail.airmail.net on Fri, Jan 14, 2000 at 07:43:50PM -0600 References: <4.2.0.58.20000114193450.00a3dcf0@mail.airmail.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On 14/01 19:43, Ray D. Davis wrote: > I am on ver 2.8. I think what you mean to say is that you have version 2.8.x of gcc. > I have compiled an equivalent of hello world in both c and c++ using both > the default a.out method and the -o option. Like this? gcc -Wall -o hw hw.c Or perhaps like this: gcc -Wall -c hw.c gcc -o hw hw.o ? > Yet when I try to execute the file which is supposed to be linked, by > typing the file name, eg. ntest, the system says ntest: not a command. That's because your command shell is not looking the current directory for executable programs. Continuing our example above, you should type: ./hw to get the program to execute. best; gjvc -- [gjvc] 4.4BSD 4.ever! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000115133841.B4684>