From owner-freebsd-hackers Tue Apr 2 15:25:14 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from falcon.prod.itd.earthlink.net (falcon.mail.pas.earthlink.net [207.217.120.74]) by hub.freebsd.org (Postfix) with ESMTP id 7BD5C37B439; Tue, 2 Apr 2002 15:23:13 -0800 (PST) Received: from pool0045.cvx22-bradley.dialup.earthlink.net ([209.179.198.45] helo=mindspring.com) by falcon.prod.itd.earthlink.net with esmtp (Exim 3.33 #1) id 16sXc8-0000Oy-00; Tue, 02 Apr 2002 15:22:56 -0800 Message-ID: <3CAA3D38.249A83E3@mindspring.com> Date: Tue, 02 Apr 2002 15:22:32 -0800 From: Terry Lambert X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Alexander Leidinger Cc: corecode@corecode.ath.cx, nick-lists@netability.ie, hackers@FreeBSD.ORG, ports@FreeBSD.ORG, flynn@energyhq.homeip.net Subject: Re: lang/icc doesn't compile c++ sources References: <200204021231.g32CV0Rj092795@Magelan.Leidinger.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 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. > 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. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message