Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 02 Apr 2002 15:22:32 -0800
From:      Terry Lambert <tlambert2@mindspring.com>
To:        Alexander Leidinger <Alexander@Leidinger.net>
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
Message-ID:  <3CAA3D38.249A83E3@mindspring.com>
References:  <200204021231.g32CV0Rj092795@Magelan.Leidinger.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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<iterator> reverse_iterator;
>                                        ^
> 
> "/usr/include/g++/std/bastring.h", line 143: error: too few arguments for class template "reverse_iterator"
>     typedef ::reverse_iterator<const_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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3CAA3D38.249A83E3>