From owner-freebsd-questions Wed Jan 3 0:58:34 2001 From owner-freebsd-questions@FreeBSD.ORG Wed Jan 3 00:58:33 2001 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from post.mail.nl.demon.net (post-10.mail.nl.demon.net [194.159.73.20]) by hub.freebsd.org (Postfix) with ESMTP id C054937B402 for ; Wed, 3 Jan 2001 00:58:32 -0800 (PST) Received: from [195.11.243.26] (helo=Debug) by post.mail.nl.demon.net with smtp (Exim 3.14 #2) id 14Djkc-00063J-00; Wed, 03 Jan 2001 08:58:30 +0000 To: vivian yan , questions@FreeBSD.ORG From: Cliff Sarginson Subject: Running programs [Was Unspecified] Date: Wed, 3 Jan 2001 08:58:30 GMT X-Mailer: www.webmail.nl.demon.net X-Sender: postmaster@btvs.demon.nl X-Originating-IP: 192.250.24.58 Message-Id: Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Hi, Oldhands > > I am learning C++ and Unix. I want to use the GNU C++ > compiler, because it is free. > I installed the freeBsd on my PC. The installation > looked successfull. > As trying I wrote a short "Hello, World" with C++ > program. saved it under the /tmp path, > using the "g++ -o Hello Hello.cpp" compiled it. > Everything seemed O.K untill now. > There is a Hello* file under the /tmp, and I "file -F > Hello", it told me it is a executable > file. But when I run it just under /tmp path, # Hello, > I got : bash: Hello: command not > found. I had tried the ./ Hello ( under the /tmp ^ no space here I hope > path)and /tmp/Hello( as friends suggested), > Still same results. > was it "Hello" or "hello", remember Unix filenames are case sensitive ( "H" is different from 'h") ... Cliff To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message