Boost C++ Libraries: Ticket #2382: [filesystem] mbstate_t is not a member of std in libs/filesystem/example/mbpath.cpp https://svn.boost.org/trac10/ticket/2382 <p> From <a class="ext-link" href="http://tinyurl.com/4lbn5p"><span class="icon">​</span>this log</a>: </p> <pre class="wiki"> "g++" -ftemplate-depth-128 -O0 -fno-inline -Wall -g -m64 -march=nocona -fPIC -nostdinc++ -DBOOST_ALL_NO_LIB=1 -DBOOST_FILESYSTEM_DYN_LINK=1 -DBOOST_SYSTEM_DYN_LINK=1 -D_RWSTDDEBUG -I".." -I"/var/tmp/stdcxx/4.2.x/gcc/11D/include" -I"/var/tmp/stdcxx/4.2.x/include" -I"/var/tmp/stdcxx/4.2.x/include/ansi" -c -o "/var/tmp/boost/results/boost/bin.v2/libs/filesystem/test/mbpath.test/gcc-4.3.0_stdcxx_422/debug/address-model-64/architecture-x86/instruction-set-nocona/stdlib-stdcxx-4.2.2/mbpath.o" "../libs/filesystem/test/../example/mbpath.cpp" ../libs/filesystem/test/../example/mbpath.cpp:27: error: ???mbstate_t??? is not a member of ???std??? ../libs/filesystem/test/../example/mbpath.cpp:27: error: ???mbstate_t??? is not a member of ???std??? ../libs/filesystem/test/../example/mbpath.cpp:27: error: template argument 3 is invalid ../libs/filesystem/test/../example/mbpath.cpp:28: error: invalid type in declaration before ???(??? token ../libs/filesystem/test/../example/mbpath.cpp:28: error: ???mbstate_t??? is not a member of ???std??? ../libs/filesystem/test/../example/mbpath.cpp:28: error: ???mbstate_t??? is not a member of ???std??? ../libs/filesystem/test/../example/mbpath.cpp:28: error: template argument 3 is invalid </pre><blockquote> <p> The proposed patch: </p> <pre class="wiki">Index: libs/filesystem/example/mbpath.cpp =================================================================== --- libs/filesystem/example/mbpath.cpp (revision 49128) +++ libs/filesystem/example/mbpath.cpp (working copy) @@ -13,6 +13,7 @@ # error This compiler or standard library does not support wide-character strings or paths # endif +#include &lt;cwchar&gt; #include "mbpath.hpp" #include &lt;boost/system/system_error.hpp&gt; #include &lt;boost/scoped_array.hpp&gt; </pre></blockquote> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/2382 Trac 1.4.3 Beman Dawes Thu, 09 Oct 2008 14:57:05 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/2382#comment:1 https://svn.boost.org/trac10/ticket/2382#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> Thanks for the patch! The same problem was also fixed in wide_test. </p> <p> --Beman </p> Ticket