Linker errors LNK2001: unresolved external symbols __std_search_1, _Thrd_sleep_for, __std_find_end_1 when building with MSVC 2022 and vcpkg Pcap++/Packet++

18 views
Skip to first unread message

NanLeb

unread,
Apr 7, 2026, 12:40:27 PMApr 7
to PcapPlusPlus support
When building project on Windows using MSVC 2022 (v143 toolchain) and libraries provided by vcpkg (Pcap++, Packet++, Common++), the linking stage fails with unresolved external symbols related to the C++ standard library implementation.
The build uses vcpkg for dependencies

OS: Windows 10
Compiler: Microsoft Visual Studio 2022 Community (v143, toolchain 14.36+)
CMake: 3.27+
Build System: Ninja (via CMake)
vcpkg: latest commit (triplet x64-windows)(Version PcapPlusPlus 25.5)

Output Log
Pcap++.lib(PcapLiveDevice.cpp.obj) : error LNK2001: unresolved external symbol __std_search_1
Packet++.lib(DnsLayer.cpp.obj) : error LNK2001: unresolved external symbol __std_search_1
Packet++.lib(SipLayer.cpp.obj) : error LNK2001: unresolved external symbol __std_search_1
Packet++.lib(SingleCommandTextProtocol.cpp.obj) : error LNK2001: unresolved external symbol __std_search_1
Pcap++.lib(PcapLiveDevice.cpp.obj) : error LNK2001: unresolved external symbol _Thrd_sleep_for
Common++.lib(SystemUtils.cpp.obj) : error LNK2001: unresolved external symbol _Thrd_sleep_for
Packet++.lib(SingleCommandTextProtocol.cpp.obj) : error LNK2001: unresolved external symbol __std_find_end_1
src\app\zapretpp_cli.exe : fatal error LNK1120: 3 unresolved externals
Reply all
Reply to author
Forward
0 new messages