From owner-freebsd-questions Sat Jan 15 14:46:12 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mx2.x-treme.gr (mx2.x-treme.gr [212.120.192.15]) by hub.freebsd.org (Postfix) with ESMTP id C81CE14F4F for ; Sat, 15 Jan 2000 14:46:05 -0800 (PST) (envelope-from keramida@diogenis.ceid.upatras.gr) Received: from hades.hell.gr (pat39.x-treme.gr [212.120.197.231]) by mx2.x-treme.gr (8.9.3/8.9.3/IPNG-ADV-ANTISPAM-0.1) with ESMTP id AAA10143; Sun, 16 Jan 2000 00:45:58 +0200 Received: (from charon@localhost) by hades.hell.gr (8.9.3/8.9.3) id QAA52658; Sat, 15 Jan 2000 16:17:18 +0200 (EET) (envelope-from keramida@diogenis.ceid.upatras.gr) Date: Sat, 15 Jan 2000 16:17:18 +0200 From: Giorgos Keramidas To: "Ray D. Davis" Cc: freebsd-questions@FreeBSD.ORG Subject: Re: How to run compiled program Message-ID: <20000115161718.A52596@hades.hell.gr> Reply-To: keramida@ceid.upatras.gr References: <4.2.0.58.20000114193450.00a3dcf0@mail.airmail.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre3i In-Reply-To: <4.2.0.58.20000114193450.00a3dcf0@mail.airmail.net> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, Jan 14, 2000 at 07:43:50PM -0600, Ray D. Davis wrote: > I am on ver 2.8. I have compiled an equivalent of hello world in > both c and c++ using both the default a.out method and the -o option. > Yet when I try to execute the file which is supposed to be linked, by > typing the file name, eg. ntest, the system says ntest: not a > command. Looking at the contents of the file it appears more like an > object file than executable. What is the dumb thing I am doing??? Try posting the exact commands you used. Some times the devil is hidden in the details. Without the exact command sequence that you used, everyone's going to be just guessing. And most of the time we'll be wrong :-) -- Giorgos Keramidas, < keramida @ ceid . upatras . gr > "What we have to learn to do, we learn by doing." [Aristotle] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message