Compiling with MSVC 2022 yields: libiberty.a(cp-demangle.o) : error LNK2019
- Dominant language
- C++
- Stars
- 30.5k
- Forks
- 5.9k
- PR merge metrics
- No merged PRs in 30d
Description
`libiberty.a(cp-demangle.o) : error LNK2019: unresolved external symbol ___chkstk_ms, referenced in function is_ctor_or_dtor [F:\CPPLib\folly-v2025.03.10.00\Mybuild\folly\logging\example\logging_example.vcxproj]
libiberty.a(cp-demangle.o) : error LNK2019: unresolved external symbol __mingw_vsprintf, referenced in function sprintf.constprop.0 [F:\CPPLib\folly-v2025.03.10.00\Mybuild\folly\logging\example\logging_example.vcxproj]
libiberty.a(rust-demangle.o) : error LNK2019: unresolved external symbol __mingw_vsnprintf, referenced in function snprintf [F:\CPPLib\folly-v2025.03.10.00\Mybuild\folly\logging\example\logging_example.vcxproj]
F:\CPPLib\folly-v2025.03.10.00\Mybuild\folly\logging\example\Release\logging_example.exe : fatal error LNK1120: 3 unresolved external symbols [F:\CPPLib\folly-v2025.03.10.00\Mybuild\folly\logging\example\logging_example.vcxproj]`
Contributor guide
Research direction
Reproduce the MSVC 2022 build using the reported folly/logging/example/logging_example.vcxproj and inspect how libiberty.a is linked. Identify the missing runtime symbols and verify the logging_example target links successfully without unresolved externals.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100