|
Boost Users : |
Subject: [Boost-users] boost::filesystem with wstring
From: ariasgore_at_[hidden]
Date: 2010-02-10 03:03:08
Hello,
I am using Boost 1.41.0 with Visual Studio 2005 and noticed some strange behaviour which I am unsure how to fix.
When I call boost::filesystem::remove_all("somepath");
everything compiles and links fine.
But now a project works entirely on wstring basis so it happens that I pass something like
boost::filesystem::remove_all(L"somepath");
Code compiles still fine but it throws many linker errors like
Fehler 2 error LNK2001: nresolved external symbol ""__declspec(dllimport) class boost::filesystem::file_status __cdecl boost::filesystem::detail::status_api(class std::basic_string<unsigned short,struct std::char_traits<unsigned short>,class std::allocator<unsigned short> > const &,class boost::system::error_code &)" (__imp_?status_api_at_detail@filesystem_at_boost@@YA?AVfile_status_at_23@ABV?$basic_string_at_GU?$char_traits_at_G@std@@V?$allocator_at_G@2@@std@@AAVerror_code_at_system@3@@Z)".
Fehler 3 error LNK2001: nresolved external symbol ""__declspec(dllimport) public: static class std::basic_string<unsigned short,struct std::char_traits<unsigned short>,class std::allocator<unsigned short> > __cdecl boost::filesystem::wpath_traits::to_external(class boost::filesystem::basic_path<class std::basic_string<unsigned short,struct std::char_traits<unsigned short>,class std::allocator<unsigned short> >,struct boost::filesystem::wpath_traits> const &,class std::basic_string<unsigned short,struct std::char_traits<unsigned short>,class std::allocator<unsigned short> > const &)" (__imp_?to_external_at_wpath_traits_at_filesystem@boost@@SA?AV?$basic_string_at_GU?$char_traits_at_G@std@@V?$allocator_at_G@2@@std@@ABV?$basic_path_at_V?$basic_string_at_GU?$char_traits_at_G@std@@V?$allocator_at_G@2@@std@@Uwpath_traits_at_filesystem@boost@@@23_at_ABV45@@Z)".
So what happens here? I searched boost for some wstring support or similar but had no luck.
It is quite unhandy to transform to and from wstring<>string.
Thanks
Sam
-- NEU: Mit GMX DSL über 1000,- ¿ sparen! http://portal.gmx.net/de/go/dsl02
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net