boost::filesystem: Problem with exists() and wpath (Linux)

9 Dec
2007
9 Dec
'07
7:05 p.m.
Hello Whenever I try to use exists() on a wpath, I get an exception. I'm running Arch Linux, with Boost 1.34.1 and Gcc 4.2.2, if it matters. Here is some code: #include "boost/filesystem.hpp" using namespace boost::filesystem; int main() { wpath test(L"whatever/path"); exists(test); return 0; } Which compiles fine, but gives me this error message on runtime: terminate called after throwing an instance of 'boost::filesystem::basic_filesystem_error<boost::filesystem::basic_path<std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >, boost::filesystem::wpath_traits> >' what(): boost::filesystem::wpath::to_external conversion error Aborted Does anyone know what I am missing here?
6392
Age (days ago)
6392
Last active (days ago)
0 comments
1 participants
participants (1)
-
Andreas Henriksson