[Filesystem] Unicode support
When compiling unicode filesystem functions, I get linking errors : Test error LNK2019: unresolved external symbol "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 &,unsigned int &)" (...) I can reproduce it easily by compiling following line of code: fs::exists(L"test.gif"); The non-unicode variants links fine, it's really only the unicode stuff. Since "\libs\filesystem\test\wide_test.cpp" must be working, I assume I'm missing a compiler macro or something ? Anyone seen this already ? My setup : Windows XP SP2 MSVC 7.1 SP1 Boost 1.34.1 downloaded from boost-consulting.com This email and any attachments is confidential, may be legally privileged and is intended for the use of the addressee only. If you are not the intended recipient, please note that any use, disclosure, printing or copying of this email is strictly prohibited and may be unlawful. If received in error, please delete this email and any attachments and confirm this to the sender.
David Bertrand wrote:
When compiling unicode filesystem functions, I get linking errors : Test error LNK2019: unresolved external symbol "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 &,unsigned int &)" (...)
I can reproduce it easily by compiling following line of code: fs::exists(L"test.gif");
The non-unicode variants links fine, it's really only the unicode stuff.
Since "\libs\filesystem\test\wide_test.cpp" must be working, I assume I'm missing a compiler macro or something ? Anyone seen this already ?
My setup : Windows XP SP2 MSVC 7.1 SP1 Boost 1.34.1 downloaded from boost-consulting.com
Have you tried this with 1.35.0 RC2? See http://boost.cowic.de/rc/ Alternately, if you post a complete program that is failing, I'll give it a quick try. (Just "fs::exists(L"test.gif");" is failing isn't enough. I need to see what you are including and what locale setup (if an) you performed prior to the call.) Thanks, --Beman
David Bertrand wrote:
When compiling unicode filesystem functions, I get linking errors : Test error LNK2019: unresolved external symbol "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 &,unsigned int &)" (...)
It seems that your project setting is using wchar_t as unsigned short, try to change it to "treat wchar_t as built-in type".
participants (3)
-
Beman Dawes
-
David Bertrand
-
gchen