From owner-freebsd-questions Wed Oct 9 07:47:34 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id HAA28440 for questions-outgoing; Wed, 9 Oct 1996 07:47:34 -0700 (PDT) Received: from dyson.iquest.net (dyson.iquest.net [198.70.144.127]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id HAA28432 for ; Wed, 9 Oct 1996 07:47:28 -0700 (PDT) Received: (from root@localhost) by dyson.iquest.net (8.7.5/8.6.9) id JAA06780; Wed, 9 Oct 1996 09:47:08 -0500 (EST) From: "John S. Dyson" Message-Id: <199610091447.JAA06780@dyson.iquest.net> Subject: Re: your mail To: bruce_perryman@ibi.com (bruce perryman) Date: Wed, 9 Oct 1996 09:47:08 -0500 (EST) Cc: questions@freebsd.org In-Reply-To: <9609098448.AA844881340@tcpgate.ibi.com> from "bruce perryman" at Oct 9, 96 10:13:09 am Reply-To: dyson@freebsd.org X-Mailer: ELM [version 2.4 PL24 ME8] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > > Hey out there! Ready for a dumb question? > > I compile a simple c program with cc and get the resulting a.out or > a.o. But I can't run it! What's the problem? > Your path most likely does not contain ".". I suggest trying to run your program like: ./a.out Note that a.o won't run. You want to compile your program like: cc -O -g -o foo foo.c This will optimize your program, make it so it can be debugged easily, and also produce a binary called "foo". You would run it using: ./foo John