From owner-freebsd-questions Tue Nov 17 18:40:28 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id SAA05482 for freebsd-questions-outgoing; Tue, 17 Nov 1998 18:40:28 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from kakapo.pinnacle.co.nz (pinsoft.internet.co.nz [202.37.141.181]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id SAA05477 for ; Tue, 17 Nov 1998 18:40:23 -0800 (PST) (envelope-from jonc@pinnacle.co.nz) Received: from kiwi.pinnacle.co.nz (kiwi.pinnacle.co.nz [202.37.163.2]) by kakapo.pinnacle.co.nz (8.8.8/8.8.8) with SMTP id PAA16415; Wed, 18 Nov 1998 15:36:56 +1300 (NZDT) (envelope-from jonc@pinnacle.co.nz) Date: Wed, 18 Nov 1998 15:36:56 +1300 (NZDT) From: Jonathan Chen To: G578@ix.netcom.com cc: freebsd-questions@FreeBSD.ORG Subject: Re: C executables In-Reply-To: <365231AD.3657@ix.netcom.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, 17 Nov 1998 G578@ix.netcom.com wrote: > You > compile, you don't specify an object module name, it defaults to > "a.out", then you type "a.out" and, Voila, Hello World! Why am I > getting Voila, Not Found? By default, your executable search-path doesn't include the current directory. You'll be able to run your program with: ./a.out If you want to include the current directory, you'll have to modify your startup script for your shell (.login/.profile/.bashrc/etc) to include the current directory for PATH -- Jonathan Chen ---------------------------------------------------------------------- The human mind ordinarily operates at only ten percent of its capacity -- the rest is overhead for the operating system. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message