From owner-freebsd-questions Sun May 14 5:13:23 2000 Delivered-To: freebsd-questions@freebsd.org Received: from cwb.pacific.net.hk (cwb.pacific.net.hk [202.14.67.92]) by hub.freebsd.org (Postfix) with ESMTP id BABC937B9F1 for ; Sun, 14 May 2000 05:13:18 -0700 (PDT) (envelope-from alexkwan@pacific.net.hk) Received: from tsingyi.pacific.net.hk (tsingyi.pacific.net.hk [202.14.67.240]) by cwb.pacific.net.hk with ESMTP id UAA22093; Sun, 14 May 2000 20:13:17 +0800 (HKT) Received: from alexkwan (ppp89.dyn30.pacific.net.hk [202.64.30.89]) by tsingyi.pacific.net.hk with SMTP id UAA14244; Sun, 14 May 2000 20:13:16 +0800 (HKT) Message-ID: <001701bfbd9d$eae8be60$591e40ca@alexkwan> From: "Alex Kwan" To: "XF" Cc: References: <000701bfbd9b$fd945300$591e40ca@alexkwan> <20000514131017.A801@dds.nl> Subject: Re: A basic question about C programming (sloved) Date: Sun, 14 May 2000 20:14:12 +0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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