From owner-freebsd-questions Tue Dec 19 11: 4:22 2000 From owner-freebsd-questions@FreeBSD.ORG Tue Dec 19 11:04:17 2000 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mail2.tdb.uu.se (mail2.tdb.uu.se [130.238.18.35]) by hub.freebsd.org (Postfix) with ESMTP id 75D6737B402 for ; Tue, 19 Dec 2000 11:04:16 -0800 (PST) Received: from rackarberget.uu.se (rackarberget.it.uu.se [130.238.18.38]) by mail2.tdb.uu.se (8.8.8/8.8.8/STUD_1.1) with ESMTP id UAA06087; Tue, 19 Dec 2000 20:04:09 +0100 (MET) Received: (from ertr1013@localhost) by rackarberget.uu.se (8.9.1b+Sun/8.8.8/STUD_NULL_1.1) id UAA19464; Tue, 19 Dec 2000 20:04:09 +0100 (MET) Date: Tue, 19 Dec 2000 20:04:09 +0100 From: Erik Trulsson To: Andrey Mavrichev Cc: questions@FreeBSD.org Subject: Re: C++ Message-ID: <20001219200408.A19446@student.uu.se> References: <3A3FADB4.A6B8750B@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3A3FADB4.A6B8750B@yahoo.com>; from mavrichev@yahoo.com on Tue, Dec 19, 2000 at 01:49:24PM -0500 Sender: ertr1013@mail2.tdb.uu.se Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, Dec 19, 2000 at 01:49:24PM -0500, Andrey Mavrichev wrote: > Hi, > > I have tried to use the "cc" compiler of the FreeBSD 4.2, and to support > the C++ stream input/output I included the directive "#include > ". However, I did not find this file in the /usr/include > directory, or any other directory where there was a possibility of it > being found. > > Does the compiler of FreeBSD 4.2 support C++, or is it just C, and I > would have to install a C++ - supporting software? If not, then where is > the "iostream.h"? > "cc" invokes the C compiler. To compile a C++ program you should use "c++" instead. This should find the include file. (Yes, it is in the system. No, I don't know exactly where it lives and I can't check right now.) No need to install anything extra. -- Erik Trulsson ertr1013@student.uu.se To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message