Boost logo

Boost :

From: Jonathan Wakely (cow_at_[hidden])
Date: 2004-09-28 03:35:41


On Mon, Sep 27, 2004 at 09:09:20AM -0700, DY, JERRY U (SBCSI) wrote:

> Could be related to the following g++ problem. Scheduled to be fixed in
> gcc 3.5
>
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17005

No, it's unrelated IMHO, see my reply to the OP.

FreeBSD does not support std::wstring in lisbtdc++ because it does not
provide a complete set of wide character C library functions.

The problem is that GCC 3.4 changed the libstdc++ macros to _GLIBCXX_foo
instead of _GLIBCPP_foo and Boost 1.31 did not know that, so doesn't
correctly configure for GCC 3.4. I think it assumes a conforming
compiler and library, which is not true on FreeBSD.

N.B. the current mainline will become 4.0, not 3.5

jon

>
> -Jerry
>
> -----Original Message-----
> From: Rob [mailto:spamrefuse_at_[hidden]]
> Sent: Sunday, September 26, 2004 9:17 PM
> To: boost_at_[hidden]
> Subject: [boost] lexical_cast.hpp:102: error: `wstring' is not a member
> of `std' ?
>
>
> Hello,
>
> I'm not a boost expert, but I'm using LyX, which has boost (version
> 1.31.0)
> included in its source code.
>
> I have FreeBSD (4.10) and use gcc 3.4.2. When I compile LyX, I get
> an error from boost:
>
> [...]
> ../../boost/boost/lexical_cast.hpp:102: error: `wstring' is not a member
> of `std'
> ../../boost/boost/lexical_cast.hpp:102: error: `wstring' is not a member
> of `std'
> ../../boost/boost/lexical_cast.hpp:103: error: template argument 1 is
> invalid
> ../../boost/boost/lexical_cast.hpp:103: error: explicit specialization
> of non-template `<type error>'
> ../../boost/boost/lexical_cast.hpp:162: error: declaration of
> `operator>>' as non-function
> ../../boost/boost/lexical_cast.hpp:162: error: expected `;' before '('
> token
> ../../boost/boost/lexical_cast.hpp:168: error: expected `;' before
> "private"
>
>
> When I reported this to the LyX list, I was told to forward the problem
> to the boost list. There may be a problem here with FreeBSD, gcc 3.4.2
> and
> boost. Any idea what is going on here?
>
> Thanks,
> Rob.
>
>
> _______________________________________________
> Unsubscribe & other changes:
> http://lists.boost.org/mailman/listinfo.cgi/boost
>
> _______________________________________________
> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

-- 
"I always keep a supply of liquor handy in case I see a snake,
 which I also keep handy."
	- W.C. Fields

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk