From owner-freebsd-questions Sun Jun 30 9:30:28 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8003D37B400 for ; Sun, 30 Jun 2002 09:30:25 -0700 (PDT) Received: from clunix.cl.msu.edu (clunix.cl.msu.edu [35.9.2.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id DEF5843E09 for ; Sun, 30 Jun 2002 09:30:24 -0700 (PDT) (envelope-from jerrymc@clunix.cl.msu.edu) Received: (from jerrymc@localhost) by clunix.cl.msu.edu (8.11.6+Sun/8.11.6) id g5UGUM607355; Sun, 30 Jun 2002 12:30:22 -0400 (EDT) From: Jerry McAllister Message-Id: <200206301630.g5UGUM607355@clunix.cl.msu.edu> Subject: Re: Compiling and executing a simple program To: geminidomino@earthlink.net (Ciro Maeitta) Date: Sun, 30 Jun 2002 12:30:22 -0400 (EDT) Cc: effdefender@earthlink.net (James), Freebsd-questions@FreeBSD.ORG (Freebsd-questions) In-Reply-To: <000e01c22016$8b139180$9865fea9@asgardnet.org> from "Ciro Maeitta" at Jun 30, 2002 05:14:22 AM X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > Subject: Compiling and executing a simple program > > > > Ok, I got my FreeBSD system up and running. While I'm waiting for KDE to > > finish installing from the ports collection, I decided to telnet into my > > FreeBSD machine from my Windows '98 machine. > > > > I wrote a "hello world" program in C++ and tried to compile it and execute > > it. > > Just to make sure I was doing everything right, I telneted in to my > school's > > (well, ex-school's) server and did it there. I had no problems on the > > school's server. > > > [snip] > > $ g++ -o hw hw.cpp > > $ hw > > hw: not found > > $ ls > > HW hw hw.cpp hw1 > > $ hw > > hw: not found > > $ > > Are you sure the directory you are in is in your path? Your prompt doesnt > tell me where you are working from, but on a hunch, I would say try './hw' > instead of just 'hw'. Iven if the directory is the path, probably the 'hw' file is not yet in the hash table because that file was just created.. So doing './hw' is definitely needed. ////jerry > > HTH > -C > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message