From owner-freebsd-questions Sun Jun 30 2:14:37 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 5854C37B401 for ; Sun, 30 Jun 2002 02:14:32 -0700 (PDT) Received: from swan.mail.pas.earthlink.net (swan.mail.pas.earthlink.net [207.217.120.123]) by mx1.FreeBSD.org (Postfix) with ESMTP id 130A443E0A for ; Sun, 30 Jun 2002 02:14:32 -0700 (PDT) (envelope-from geminidomino@earthlink.net) Received: from user168.net314.fl.sprint-hsd.net ([207.30.169.168] helo=thorr) by swan.mail.pas.earthlink.net with smtp (Exim 3.33 #2) id 17Oamp-0004ct-00; Sun, 30 Jun 2002 02:14:27 -0700 Message-ID: <000e01c22016$8b139180$9865fea9@asgardnet.org> From: "Ciro Maeitta" To: "James" , "Freebsd-questions" References: <001201c22012$089b70a0$0301a8c0@sys.gtei.net> Subject: Re: Compiling and executing a simple program Date: Sun, 30 Jun 2002 05:14:22 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 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 ----- Original Message ----- From: "James" To: "Freebsd-questions" Sent: Sunday, June 30, 2002 0442h 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'. HTH -C To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message