From owner-freebsd-current Mon Aug 19 8:12:46 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D60BD37B400 for ; Mon, 19 Aug 2002 08:12:40 -0700 (PDT) Received: from 12-218-135-53.client.mchsi.com (12-218-135-53.client.mchsi.com [12.218.135.53]) by mx1.FreeBSD.org (Postfix) with SMTP id 04D0843E6A for ; Mon, 19 Aug 2002 08:12:40 -0700 (PDT) (envelope-from erik@12-218-135-53.client.mchsi.com) Received: (qmail 29784 invoked by uid 1000); 19 Aug 2002 15:12:52 -0000 Date: Mon, 19 Aug 2002 10:12:52 -0500 From: Erik Greenwald To: current@freebsd.org Subject: Re: broken c++? Message-ID: <20020819151252.GA29776@freya> References: <20020819122252.GA3107@genius.tao.org.uk> <20020819143329.GA29511@freya> <1029768788.368.1.camel@twoflower> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1029768788.368.1.camel@twoflower> User-Agent: Mutt/1.4i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, Aug 19, 2002 at 04:53:08PM +0200, Jan Stocker wrote: > > > > > for your own code, you seem to lack -lstdc++ > > This shouldn't be the prob... > You never have to add -lstdc++ by hand... using g++ to link has to > include it by itself. yeah... I just did a little experimenting, seems to be a namespace issue. So if you're going to use 'cout', remember to either put "std::cout" or "using namespace std;" in your code... (damn I hate c++) at one point, hand-adding -lstdc++ fixed problems like this, I can't seem to reproduce it so it may have been a bug or something, I don't know :) -- -Erik [http://math.smsu.edu/~erik] The opinions expressed by me are not necessarily opinions. In all probability, they are random rambling, and to be ignored. Failure to ignore may result in severe boredom or confusion. Shake well before opening. Keep Refrigerated. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message