From owner-freebsd-questions Sun Jun 30 1:42:48 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 B3D9E37B400 for ; Sun, 30 Jun 2002 01:42:44 -0700 (PDT) Received: from gull.mail.pas.earthlink.net (gull.mail.pas.earthlink.net [207.217.120.84]) by mx1.FreeBSD.org (Postfix) with ESMTP id 19F5743E09 for ; Sun, 30 Jun 2002 01:42:44 -0700 (PDT) (envelope-from effdefender@earthlink.net) Received: from lsanca1-ar19-4-47-010-037.lsanca1.elnk.dsl.genuity.net ([4.47.10.37] helo=Family) by gull.mail.pas.earthlink.net with smtp (Exim 3.33 #2) id 17OaI2-0001Lp-00 for Freebsd-questions@freebsd.org; Sun, 30 Jun 2002 01:42:38 -0700 Message-ID: <001201c22012$089b70a0$0301a8c0@sys.gtei.net> Reply-To: "James" From: "James" To: "Freebsd-questions" Subject: Compiling and executing a simple program Date: Sun, 30 Jun 2002 01:42:14 -0700 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 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 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 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. Anyone know why this wouldn't work? The program will compile, but when I type in the name of the file to execute it, it does not work. I've pasted some of the commands I typed below. Does anyone have any ideas? Am I missing something? If I am, can someone point me in the right direction? Thank you, James Turnbull $ cat hw.cpp #include int main () { cout << "Hello World!"; // created on June 30, 1:03 AM from my PC return 0; } $ g++ -o hw hw.cpp $ hw hw: not found $ ls HW hw hw.cpp hw1 $ hw hw: not found $ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message