
14 Feb
2012
14 Feb
'12
6:40 p.m.
[Robert Stewart]
When I try to include boost/filesystem/operations.hpp, my code won't compile on MSVC 10 (Visual Studio 2010). The error is from boost/filesystem/v3/config.hpp:49: # if defined( BOOST_NO_STD_WSTRING ) # error Configuration not supported: Boost.Filesystem V3 and later requires std::wstring support # endif
First, check your command line. If it isn't defining the macro, preprocess with /P /d1PP . The second option is undocumented and unsupported, but extremely useful - it preserves #define directives, so you can see where macros are coming from. Stephan T. Lavavej Visual C++ Libraries Developer