From owner-freebsd-questions Sun May 14 7:13:36 2000 Delivered-To: freebsd-questions@freebsd.org Received: from admin.cyberenet.net (admin.cyberenet.net [204.213.252.6]) by hub.freebsd.org (Postfix) with ESMTP id 29F4837B743 for ; Sun, 14 May 2000 07:13:33 -0700 (PDT) (envelope-from toadie@eticomm.net) Received: from ppp22.chhill1.eticomm.net ([208.9.145.22] helo=eticomm.net) by admin.cyberenet.net with esmtp (Exim 2.12 #1) id 12qzCf-0005HB-00; Sun, 14 May 2000 10:17:09 -0400 Message-ID: <391EB3A8.36442A53@eticomm.net> Date: Sun, 14 May 2000 10:09:45 -0400 From: "Alan L. Clarke" X-Mailer: Mozilla 4.72 [en] (WinNT; I) X-Accept-Language: en MIME-Version: 1.0 To: Alex Kwan Cc: XF , freebsd-questions@FreeBSD.ORG Subject: Re: A basic question about C programming (sloved) References: <000701bfbd9b$fd945300$591e40ca@alexkwan> <20000514131017.A801@dds.nl> <001701bfbd9d$eae8be60$591e40ca@alexkwan> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG The smart thing to do is to change your .profile . Change your PATH variable to include your present working directory or any other directories that you will be using to execute code!!!!!!!!!!!!!!!!!! Alan Alex Kwan wrote: > Hi! > > Thank you! it is ok now, but why? > > Alex > > > > Hi! > > > > > > I am learning C programming with FreeBSD, I write a simple C program > > > (filename: inform.c) as follow: > > > #include > > > main() > > > { > > > printf("A .c is used to end a C program filename.\n"); > > > } > > > > > > I compile it with "cc -o inform inform.c", when the compilation is > > > finished, > > > I have got the file "inform", but it can't execute and got the error > > > "inform: Command not found", What is the problem of me? > > > > > > Thanks > > > > > > > > > > try ./inform > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message