-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error LNK2001: unresolved external symbol for absl #535
Comments
I noticed there is a section in the CHANGES.md that says: |
@jingtao01 this is most likely cause by the vcpkg abseil dependency getting out of sync. When you run the cmake configure command, you should see a message indicating the |
@kring |
Oh you know @jingtao01, I think @j9liu ran into a very similar problem in Cesium for Unreal. You should be able to fix it by modifying the I'm not sure if you're in a position to try it now that you've solved your immediate problem, but if you do try it, please let us know if it works. |
@kring |
Thanks @jingtao01! We'll bring that change over to Unity, too, then. |
When building from the latest 1.14.0 source code, I encountered numerous LNK2001 errors.
Here are my development environment details:
.NET version: 8.0.404
CMake version: 3.26.3
Visual Studio: 2022
I followed these steps:
dotnet publish Reinterop~ -o .
cmake -B build -S . -DCMAKE_BUILD_TYPE=Debug
cmake --build build -j14 --target install --config Debug
After completing these steps, I received multiple LNK2001 errors. Some examples include:
Could you provide any insights into why this might be occurring?
Thank you in advance for your assistance.
s2.lib(s2coords.cc.obj) : error LNK2001: unresolved external symbol "public: __cdecl absl::lts_20240722::log_internal::LogMessageFatal::LogMessageFatal(char const *,int,class absl::lts_20240722::string_view)" (??0LogMessageFatal@log_internal@lts_20240722@absl@@QEAA@PEBDHVstring_view@23@@Z) [F:\project\ttttttttttttttttttttttttttttttttt\Packages\com.cesium.unity\native~\build\Runtime\CesiumForUnityNative-Runtime.vcxproj] s2.lib(r2rect.cc.obj) : error LNK2001: unresolved external symbol "public: __cdecl absl::lts_20240722::log_internal::LogMessageFatal::LogMessageFatal(char const *,int,class absl::lts_20240722::string_view)" (??0LogMessageFatal@log_internal@lts_20240722@absl@@QEAA@PEBDHVstring_view@23@@Z) [F:\project\ttttttttttttttttttttttttttttttttt\Packages\com.cesium.unity\native~\build\Runtime\CesiumForUnityNative-Runtime.vcxproj] s2.lib(coder.cc.obj) : error LNK2001: unresolved external symbol "public: __cdecl absl::lts_20240722::log_internal::LogMessageFatal::LogMessageFatal(char const *,int,class absl::lts_20240722::string_view)" (??0LogMessageFatal@log_internal@lts_20240722@absl@@QEAA@PEBDHVstring_view@23@@Z) [F:\project\ttttttttttttttttttttttttttttttttt\Packages\com.cesium.unity\native~\build\Runtime\CesiumForUnityNative-Runtime.vcxproj] CesiumGeospatial.lib(S2CellID.obj) : error LNK2001: unresolved external symbol "public: __cdecl absl::lts_20240722::log_internal::LogMessageFatal::LogMessageFatal(char const *,int,class absl::lts_20240722::string_view)" (??0LogMessageFatal@log_internal@lts_20240722@absl@@QEAA@PEBDHVstring_view@23@@Z) [F:\project\ttttttttttttttttttttttttttttttttt\Packages\com.cesium.unity\native~\build\Runtime\CesiumForUnityNative-Runtime.vcxproj] s2.lib(s1interval.cc.obj) : error LNK2001: unresolved external symbol "public: __cdecl absl::lts_20240722::log_internal::LogMessageFatal::LogMessageFatal(char const *,int,class absl::lts_20240722::string_view)" (??0LogMessageFatal@log_internal@lts_20240722@absl@@QEAA@PEBDHVstring_view@23@@Z) [F:\project\ttttttttttttttttttttttttttttttttt\Packages\com.cesium.unity\native~\build\Runtime\CesiumForUnityNative-Runtime.vcxproj] s2.lib(s2cell_id.cc.obj) : error LNK2001: unresolved external symbol "public: __cdecl absl::lts_20240722::log_internal::LogMessageFatal::LogMessageFatal(char const *,int,class absl::lts_20240722::string_view)" (??0LogMessageFatal@log_internal@lts_20240722@absl@@QEAA@PEBDHVstring_view@23@@Z) [F:\project\ttttttttttttttttttttttttttttttttt\Packages\com.cesium.unity\native~\build\Runtime\CesiumForUnityNative-Runtime.vcxproj] s2.lib(s2latlng.cc.obj) : error LNK2001: unresolved external symbol "public: __cdecl absl::lts_20240722::log_internal::LogMessageFatal::LogMessageFatal(char const *,int,class absl::lts_20240722::string_view)" (??0LogMessageFatal@log_internal@lts_20240722@absl@@QEAA@PEBDHVstring_view@23@@Z) [F:\project\ttttttttttttttttttttttttttttttttt\Packages\com.cesium.unity\native~\build\Runtime\CesiumForUnityNative-Runtime.vcxproj] s2.lib(s2coords.cc.obj) : error LNK2001: unresolved external symbol "public: __cdecl absl::lts_20240722::log_internal::LogMessageFatal::~LogMessageFatal(void)" (??1LogMessageFatal@log_internal@lts_20240722@absl@@QEAA@XZ) [F:\project\ttttttttttttttttttttttttttttttttt\Packages\com.cesium.unity\native~\build\Runtime\CesiumForUnityNative-Runtime.vcxproj] s2.lib(r2rect.cc.obj) : error LNK2001: unresolved external symbol "public: __cdecl absl::lts_20240722::log_internal::LogMessageFatal::~LogMessageFatal(void)" (??1LogMessageFatal@log_internal@lts_20240722@absl@@QEAA@XZ) [F:\project\ttttttttttttttttttttttttttttttttt\Packages\com.cesium.unity\native~\build\Runtime\CesiumForUnityNative-Runtime.vcxproj] s2.lib(coder.cc.obj) : error LNK2001: unresolved external symbol "public: __cdecl absl::lts_20240722::log_internal::LogMessageFatal::~LogMessageFatal(void)" (??1LogMessageFatal@log_internal@lts_20240722@absl@@QEAA@XZ) [F:\project\ttttttttttttttttttttttttttttttttt\Packages\com.cesium.unity\native~\build\Runtime\CesiumForUnityNative-Runtime.vcxproj] CesiumGeospatial.lib(S2CellID.obj) : error LNK2001: unresolved external symbol "public: __cdecl absl::lts_20240722::log_internal::LogMessageFatal::~LogMessageFatal(void)" (??1LogMessageFatal@log_internal@lts_20240722@absl@@QEAA@XZ) [F:\project\ttttttttttttttttttttttttttttttttt\Packages\com.cesium.unity\native~\build\Runtime\CesiumForUnityNative-Runtime.vcxproj] s2.lib(s1interval.cc.obj) : error LNK2001: unresolved external symbol "public: __cdecl absl::lts_20240722::log_internal::LogMessageFatal::~LogMessageFatal(void)" (??1LogMessageFatal@log_internal@lts_20240722@absl@@QEAA@XZ) [F:\project\ttttttttttttttttttttttttttttttttt\Packages\com.cesium.unity\native~\build\Runtime\CesiumForUnityNative-Runtime.vcxproj] s2.lib(s2cell_id.cc.obj) : error LNK2001: unresolved external symbol "public: __cdecl absl::lts_20240722::log_internal::LogMessageFatal::~LogMessageFatal(void)" (??1LogMessageFatal@log_internal@lts_20240722@absl@@QEAA@XZ) [F:\project\ttttttttttttttttttttttttttttttttt\Packages\com.cesium.unity\native~\build\Runtime\CesiumForUnityNative-Runtime.vcxproj] s2.lib(s2latlng.cc.obj) : error LNK2001: unresolved external symbol "public: __cdecl absl::lts_20240722::log_internal::LogMessageFatal::~LogMessageFatal(void)" (??1LogMessageFatal@log_internal@lts_20240722@absl@@QEAA@XZ) [F:\project\ttttttttttttttttttttttttttttttttt\Packages\com.cesium.unity\native~\build\Runtime\CesiumForUnityNative-Runtime.vcxproj] s2.lib(s2coords.cc.obj) : error LNK2001: unresolved external symbol "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > * __cdecl absl::lts_20240722::log_internal::MakeCheckOpString<__int64,__int64>(__int64,__int64,char const *)" (??$MakeCheckOpString@_J_J@log_internal@lts_20240722@absl@@YAPEAV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@_J0PEBD@Z) [F:\project\ttttttttttttttttttttttttttttttttt\Packages\com.cesium.unity\native~\build\Runtime\CesiumForUnityNative-Runtime.vcxproj] s2.lib(r2rect.cc.obj) : error LNK2001: unresolved external symbol "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > * __cdecl absl::lts_20240722::log_internal::MakeCheckOpString<__int64,__int64>(__int64,__int64,char const *)" (??$MakeCheckOpString@_J_J@log_internal@lts_20240722@absl@@YAPEAV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@_J0PEBD@Z) [F:\project\ttttttttttttttttttttttttttttttttt\Packages\com.cesium.unity\native~\build\Runtime\CesiumForUnityNative-Runtime.vcxproj] CesiumGeospatial.lib(S2CellID.obj) : error LNK2001: unresolved external symbol "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > * __cdecl absl::lts_20240722::log_internal::MakeCheckOpString<__int64,__int64>(__int64,__int64,char const *)" (??$MakeCheckOpString@_J_J@log_internal@lts_20240722@absl@@YAPEAV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@_J0PEBD@Z) [F:\project\ttttttttttttttttttttttttttttttttt\Packages\com.cesium.unity\native~\build\Runtime\CesiumForUnityNative-Runtime.vcxproj]
The text was updated successfully, but these errors were encountered: