Hi All,
Environment: VS2019 + Windows Server 2019
libphonenumber failed to build due to error LNK2019: unresolved external symbol "public: static class i18n. It can be reproduced on latest version
fb46438 on master branch. Could you please help look at this issue?
Repro steps:
1. cd F:\gitP\microsoft\vcpkg
2. bootstrap-vcpkg.bat
3. vcpkg.exe install --recurse gtest protobuf re2 icu --triplet x64-windows --clean-after-build
5. cd F:\libphonenumber\cpp && mkdir build_amd64
6. cd F:\libphonenumber\cpp\build_amd64
7. cmake -G "Visual Studio 16 2019" -A x64 -DCMAKE_SYSTEM_VERSION=10.0.18362.0 -DCMAKE_BUILD_TYPE=Release -DBOOST_ROOT=F:\tools\boost_1_77_0\x64 -DCMAKE_TOOLCHAIN_FILE="F:\gitP\microsoft\vcpkg\scripts\buildsystems\vcpkg.cmake" -DVCPKG_TARGET_TRIPLET=x64-windows -DPROTOC_BIN=F:\gitP\microsoft\vcpkg\installed\x64-windows\tools\protobuf\protoc.exe -DPROTOBUF_LIB=F:\gitP\microsoft\vcpkg\installed\x64-windows\lib\libprotobuf.lib -DUSE_STD_MAP=ON -DICU_I18N_LIB=F:\gitP\microsoft\vcpkg\installed\x64-windows\lib\icuin.lib -DUSE_ICU_REGEXP=OFF ..
8. msbuild /p:Configuration=Release;Platform=x64 libphonenumber.sln /t:Rebuild /m
Error info:
please check the attachment "cmake.log" detailed cmake log.
please check the attachment "msbuildx64_error.log" detailed build error log.