From owner-freebsd-questions Sun May 14 4:59:37 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 2DBD237B608 for ; Sun, 14 May 2000 04:59:32 -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 TAA21421 for ; Sun, 14 May 2000 19:59:29 +0800 (HKT) Received: from alexkwan (ppp89.dyn30.pacific.net.hk [202.64.30.89]) by tsingyi.pacific.net.hk with SMTP id TAA12968 for ; Sun, 14 May 2000 19:59:28 +0800 (HKT) Message-ID: <000701bfbd9b$fd945300$591e40ca@alexkwan> From: "Alex Kwan" To: Subject: A basic question about C programming Date: Sun, 14 May 2000 20:00:23 +0800 MIME-Version: 1.0 Content-Type: text/plain; charset="big5" 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! 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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message