diff options
| author | Erik Kundiman <erik@megapahit.org> | 2025-06-06 00:14:35 +0800 | 
|---|---|---|
| committer | Erik Kundiman <erik@megapahit.org> | 2025-06-06 00:17:37 +0800 | 
| commit | 64ce4927e8ed65b09620c4080ec2942b6a52f31c (patch) | |
| tree | cd1c519855fbe8ecb6d964e4d1e80545184db9ca /indra | |
| parent | 29983baebecfd0df7d16ec4de567628b6a61677f (diff) | |
Fix another wstring Boost filesystem linking error
Basically string() functions call this convert().
The error was:
llfilesystem.lib(lldiriterator.obj) : error LNK2001: unresolved external
symbol "__declspec(dllimport) void __cdecl
boost::filesystem::detail::path_traits::convert(unsigned short const
*,unsigned short const *,class std::basic_string<char,struct
std::char_traits<char>,c
lass std::allocator<char> > &,class std::codecvt<unsigned
short,char,struct _Mbstatet> const *)"
(__imp_?convert@path_traits@detail@filesystem@boost@@YAXPEBG0AEAV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PEBV?$codecvt@GDU_Mbstatet@@@6@@Z)
[C:\Users\er
ik\Documents\Megapahit\viewer\build-mingw64_nt-10.0-19045-x86_64\newview\megapahit.vcxproj]
    Hint on symbols that are defined and could potentially match:
          "__declspec(dllimport) void __cdecl
	  boost::filesystem::detail::path_traits::convert(char const
	  *,char const *,class std::basic_string<wchar_t,struct
	  std::char_traits<wchar_t>,class std::allocator<wchar_t> >
	  &,class std::codecvt<wchar_t,char,struct _Mbstatet> const
	     *)"
	     (__imp_?convert@path_traits@detail@filesystem@boost@@YAXPEBD0AEAV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@PEBV?$codecvt@_WDU_Mbstatet@@@6@@Z)
	           "__declspec(dllimport) void __cdecl
		   boost::filesystem::detail::path_traits::convert(wchar_t
		   const *,wchar_t const *,class
		   std::basic_string<char,struct
		   std::char_traits<char>,class std::allocator<char> >
		   &,class std::codecvt<wchar_t,char,struct _Mbstatet>
		   const *)
		     "
		     (__imp_?convert@path_traits@detail@filesystem@boost@@YAXPEB_W0AEAV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PEBV?$codecvt@_WDU_Mbstatet@@@6@@Z)
Diffstat (limited to 'indra')
| -rw-r--r-- | indra/llfilesystem/lldiriterator.cpp | 8 | 
1 files changed, 8 insertions, 0 deletions
| diff --git a/indra/llfilesystem/lldiriterator.cpp b/indra/llfilesystem/lldiriterator.cpp index 61f768c512..cd99c79357 100644 --- a/indra/llfilesystem/lldiriterator.cpp +++ b/indra/llfilesystem/lldiriterator.cpp @@ -72,7 +72,11 @@ LLDirIterator::Impl::Impl(const std::string &dirname, const std::string &mask)      if (!is_dir)      { +#if LL_WINDOWS +        LL_WARNS() << "Invalid path: \"" << utf16str_to_utf8str(dir_path.wstring()) << "\"" << LL_ENDL; +#else          LL_WARNS() << "Invalid path: \"" << dir_path.string() << "\"" << LL_ENDL; +#endif          return;      } @@ -130,7 +134,11 @@ bool LLDirIterator::Impl::next(std::string &fname)          while (mIter != end_itr && !found)          {              boost::smatch match; +#if LL_WINDOWS +            std::string name = utf16str_to_utf8str(mIter->path().filename().wstring()); +#else              std::string name = mIter->path().filename().string(); +#endif              found = ll_regex_match(name, match, mFilterExp);              if (found)              { | 
