From owner-freebsd-hackers Tue Apr 2 22: 4:34 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mailout04.sul.t-online.com (mailout04.sul.t-online.com [194.25.134.18]) by hub.freebsd.org (Postfix) with ESMTP id 18FEE37B405; Tue, 2 Apr 2002 22:04:26 -0800 (PST) Received: from fwd04.sul.t-online.de by mailout04.sul.t-online.com with smtp id 16sdkU-0004rz-03; Wed, 03 Apr 2002 07:55:58 +0200 Received: from spirit.zuhause.stoert.net (320050403952-0001@[217.224.173.82]) by fmrl04.sul.t-online.com with esmtp id 16sdkP-0v2GwqC; Wed, 3 Apr 2002 07:55:53 +0200 Received: from elevation.zuhause.stoert.net (elevation.zuhause.stoert.net [192.168.66.46]) by spirit.zuhause.stoert.net (8.11.6/8.11.6) with ESMTP id g335tpR80664; Wed, 3 Apr 2002 07:55:51 +0200 (CEST) (envelope-from corecode@corecode.ath.cx) Received: (from corecode@localhost) by elevation.zuhause.stoert.net (8.11.6/8.11.6) id g335tnL31400; Wed, 3 Apr 2002 07:55:49 +0200 (CEST) (envelope-from corecode) Date: Wed, 3 Apr 2002 07:55:41 +0200 From: "Simon 'corecode' Schubert" To: Terry Lambert Cc: Alexander@Leidinger.net, nick-lists@netability.ie, hackers@FreeBSD.ORG, ports@FreeBSD.ORG, flynn@energyhq.homeip.net Subject: Re: lang/icc doesn't compile c++ sources Message-Id: <20020403075541.24179cbb.corecode@corecode.ath.cx> In-Reply-To: <3CAA3D38.249A83E3@mindspring.com> References: <200204021231.g32CV0Rj092795@Magelan.Leidinger.net> <3CAA3D38.249A83E3@mindspring.com> X-Mailer: Sylpheed version 0.7.4claws (GTK+ 1.2.10; i386-portbld-freebsd4.5) Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; boundary="fqYE4I.+=.L,hZRl" X-Sender: 320050403952-0001@t-dialin.net Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --fqYE4I.+=.L,hZRl Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Tue, 02 Apr 2002 15:22:32 -0800 Terry Lambert wrote: > Alexander Leidinger wrote: > > "test.cc", line 4: error: name followed by "::" must be a class or namespace name > > std::string test ="Hello World"; > > ^ > > > > So we have to fix the base system headers in this regard and discard > > Intels C++ headers? > > This appears to be an attempt to declare an instance of an > internal subclass. Probably needs the code fixed. i think this because the gcc 2.95.3 headers don't use namespaces correctly. so std:: is unknown :( > > > What about these errors? > > ---snip--- > > test.cc: > > "/usr/include/g++/std/bastring.h", line 142: error: too few arguments for class template "reverse_iterator" > > typedef ::reverse_iterator reverse_iterator; > > ^ > > > > "/usr/include/g++/std/bastring.h", line 143: error: too few arguments for class template "reverse_iterator" > > typedef ::reverse_iterator const_reverse_iterator; > > ---snip--- > > These are compiler errors. Try puting spaces in between the > tokens. Specifically, after the "::" and around the "<". It's > been a while since I've seen code written with this style, so I > can't give you the magic incantation off the top of my head. the headers don't define reverse_iterator<> the way it is expected by bastring.h; have a look at and you will see. i've fixed this problem but then other (namespace related) problems arise: bastring.h uses ::reverse_iterator (as you can see ;]) but these really should be std::reverse_iterator... cheerz simon -- /"\ http://corecode.ath.cx/#donate \ / \ ASCII Ribbon Campaign / \ Against HTML Mail and News --fqYE4I.+=.L,hZRl Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) iD8DBQE8qplgr5S+dk6z85oRAoqeAKDniix/dfFd9IG3LR6q5iWNxmsLQgCfb7U4 KidIAM+0ljN3Kxle/+HzEug= =uAJy -----END PGP SIGNATURE----- --fqYE4I.+=.L,hZRl-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message