LNK2019 unresolved external symbol __dyn_tls_on_demand_init referenced in function "private: static struct google::protobuf::internal::ArenaImpl::ThreadCache & __cdecl google::protob

585 views
Skip to first unread message

Eric Desjardins

unread,
Apr 23, 2020, 1:14:07 PM4/23/20
to discuss-webrtc
Hi,

I'm trying to compile for Visual Studio 2017  using:

gn gen out/Debug --args="is_debug=true is_clang=false use_lld=false visual_studio_version=2017 rtc_include_tests=false rtc_build_tools=false rtc_include_tests=false rtc_build_examples=false"

I'm using a x64 native command prompt to compile using
ninja -C out/Debug

When I try to link, I do not have a symbol __dyn_tls_on_demand_init that is only found in protobuf. I could not find a definition anywhere for this symbol. __tls_guard is also missing.

Is it possible that I am linking with clang without knowing?
Am I using the correct gn command to generate my project?

Thanks!
Eric

Panneerselvam V.

unread,
Apr 27, 2020, 2:09:26 AM4/27/20
to discuss-webrtc
I too have similar issue when I compile V8 version 8.2.309 on Visual Studio version 16.5.4, but if it's compiled with Visual Studio version 16.4.5, issue is not happening.
So, I suspect Visual Studio update is causing this issue (specifically, it's broken between 16.5.1 and 16.5.4)
Reply all
Reply to author
Forward
0 new messages