From owner-freebsd-questions Sat Jan 15 7:11:18 2000 Delivered-To: freebsd-questions@freebsd.org Received: from alpha.pit.adelphia.net (alpha.pit.adelphia.net [24.48.44.2]) by hub.freebsd.org (Postfix) with ESMTP id 7BABA14E88 for ; Sat, 15 Jan 2000 07:11:15 -0800 (PST) (envelope-from evstiounin@adelphia.net) Received: from evstiouninadelphia (surf15-208.pit.adelphia.net [24.48.53.208]) by alpha.pit.adelphia.net (8.9.2/8.9.2) with SMTP id KAA22768; Sat, 15 Jan 2000 10:11:03 -0500 (EST) Message-ID: <003301bf5f6b$237d0b00$d0353018@evstiouninadelphia.net.pit.adelphia.net> From: "Mikhail Evstiounin" To: , "Ray D. Davis" Subject: Re: How to run compiled program Date: Sat, 15 Jan 2000 10:11:23 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.72.3110.1 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I don't remember exatly when FreeBSD started to use new executable format, but try to do following first: ./ntest A lot of times one doesn't have the current directory in your path (it does make sense, because it more secure) and system doesn't want to recognize any command in the current directory. -----Original Message----- From: Ray D. Davis To: freebsd-questions@FreeBSD.ORG Date: Friday, January 14, 2000 8:42 PM Subject: How to run compiled program >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??? > >tnx > >ray >----------------------------------------------------- >Click here for Free Video!! >http://www.gohip.com/freevideo/ > > > >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