From owner-freebsd-questions@FreeBSD.ORG Thu Aug 26 02:39:50 2004 Return-Path: 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 64CAB16A4CE for ; Thu, 26 Aug 2004 02:39:50 +0000 (GMT) Received: from mxout6.cac.washington.edu (mxout6.cac.washington.edu [140.142.33.20]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3705A43D62 for ; Thu, 26 Aug 2004 02:39:50 +0000 (GMT) (envelope-from dsyphers@u.washington.edu) Received: from smtp.washington.edu (smtp.washington.edu [140.142.32.139]) ESMTP id i7Q2dnUs004516 for ; Wed, 25 Aug 2004 19:39:49 -0700 Received: from [192.168.1.100] (c-24-18-235-11.client.comcast.net [24.18.235.11]) (authenticated bits=0)i7Q2dnsu031301 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NOT) for ; Wed, 25 Aug 2004 19:39:49 -0700 From: David Syphers To: freebsd-questions@freebsd.org Date: Wed, 25 Aug 2004 19:40:07 -0700 User-Agent: KMail/1.6.2 MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <200408251940.07032.dsyphers@u.washington.edu> Subject: help with 'hello world' X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Aug 2004 02:39:50 -0000 It's been a while since I wrote anything in C++, but this is sad - I can't get hello world to compile. Could some kind person please tell me what, exactly, is wrong with: #include int main() { cout << "Hello World"; return 0; } This compiles fine on SunOS using egcs-2.91.66. However, it fails on FreeBSD (gcc 3.4.2) and RedHat (gcc 3.2.3) with the bizarre error "`cout' undeclared". This happens with too. However, I can use iostream.h and vector.h, though it complains they're deprecated. Thanks for the help, -David -- +++ Divide By Cucumber Error. Please Reinstall Universe And Reboot. +++