summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorErik Kundiman <erik@megapahit.org>2026-04-23 19:23:08 +0800
committerErik Kundiman <erik@megapahit.org>2026-04-23 19:23:08 +0800
commitdf9970272800a71c180aa73fe2f71eb2f1b95fd5 (patch)
tree96af52273c29343b3ed52a7544374e0cac3c69c8 /indra
parentc865f4d2ffcdf2691308023efeb1ba8bcb69e7b3 (diff)
Fix another wstring Boost filesystem linking error
The errors were: llfilesystem.lib(llfilesystem.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) void __cdecl boost::filesystem::detail::path_traits::convert(char const *,char const *,cl ass std::basic_string<unsigned short,struct std::char_traits<unsigned short>,class std::allocator<unsigned short> > &,class std::codecvt<unsigned short,char,struct _Mbstatet> const *)" (__imp _?convert@path_traits@detail@filesystem@boost@@YAXPEBD0AEAV?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@PEBV?$codecvt@GDU_Mbstatet@@@6@@Z) referenced in function "public: __cd ecl boost::filesystem::path::path<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,void>(class std::basic_string<char,struct std::char_traits<char>,clas s std::allocator<char> > const &)" (??$?0V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@X@path@filesystem@boost@@QEAA@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2 @@std@@@Z) [C:\Users\erik\Documents\Megapahit\viewer\build-mingw64_nt-10.0-26200-arm64-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?$a llocator@D@2@@std@@PEBV?$codecvt@_WDU_Mbstatet@@@6@@Z)
Diffstat (limited to 'indra')
-rw-r--r--indra/llfilesystem/llfilesystem.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/indra/llfilesystem/llfilesystem.cpp b/indra/llfilesystem/llfilesystem.cpp
index 728ff396ef..cd0ce45049 100644
--- a/indra/llfilesystem/llfilesystem.cpp
+++ b/indra/llfilesystem/llfilesystem.cpp
@@ -75,7 +75,11 @@ LLFileSystem::LLFileSystem(const LLUUID& file_id, const LLAssetType::EType file_
bool LLFileSystem::getExists(const LLUUID& file_id, const LLAssetType::EType file_type)
{
LL_PROFILE_ZONE_SCOPED;
+#if LL_WINDOWS
+ const auto filename = ll_convert<std::wstring>(LLDiskCache::metaDataToFilepath(file_id, file_type));
+#else
const std::string filename = LLDiskCache::metaDataToFilepath(file_id, file_type);
+#endif
boost::system::error_code ec;
if (boost::filesystem::exists(filename, ec) && boost::filesystem::is_regular_file(filename, ec))
@@ -117,7 +121,11 @@ bool LLFileSystem::renameFile(const LLUUID& old_file_id, const LLAssetType::ETyp
// static
S32 LLFileSystem::getFileSize(const LLUUID& file_id, const LLAssetType::EType file_type)
{
+#if LL_WINDOWS
+ const auto filename = ll_convert<std::wstring>(LLDiskCache::metaDataToFilepath(file_id, file_type));
+#else
const std::string filename = LLDiskCache::metaDataToFilepath(file_id, file_type);
+#endif
boost::system::error_code ec;
if (boost::filesystem::exists(filename, ec) && boost::filesystem::is_regular_file(filename, ec))