Boost logo

Boost :

From: John Maddock (john_at_[hidden])
Date: 2004-07-23 06:16:37


> > c:\boost\libs\test\build\../src/test_tools.cpp:37: `wcscmp' is already
> declared in this scope
> >
> > #if defined( __GNUC__ ) && defined( BOOST_NO_CWCHAR )
> > namespace std { using ::wcscmp; } <===================== here
> > #endif
>
> This is the line that was changed yesterday to handle no wcscmp in
namespace
> std sometimes. According to an analysis here http://tinyurl.com/3kmyz
above
> supposed to work. Now what are the possible issues are:
>
> 1. BOOST_NO_CWCHAR got defined, while it shouldn't. Why is that?
> 2. Analysis is not completely correct. What is a complete solution?

If BOOST_NO_CWCHAR is defined then you shouldn't be using wcscmp or any
other wide character API at all.

It's probably set because the std lib isn't set up with wide character
support (neither _GLIBCPP_USE_WCHAR_T nor _GLIBCXX_USE_WCHAR_T is defined).

John.


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