Closed dhanuashikesh closed 3 years ago
I am also having this issue. Actually, when I installed grpc my build completed fine. A few hours later and a restart, I'm getting various linking errors as well. Re-installing now doesn't seem to be solving anything.
EDIT: Solved, the problem was that at some point I used 'vcpkg integrate install'. To fix, I had to do 'vcpkg integrate remove', remove the CMAKE_TOOLCHAIN_FILE argument from my build command, and then add 'vcpkg\installed\x64-windows' to my PATH variable.
Duplicate of issue https://github.com/microsoft/vcpkg/issues/10404, thanks @lken274 for sharing the workaround, please use issue 10404 to track the status.
I am also having this issue. Actually, when I installed grpc my build completed fine. A few hours later and a restart, I'm getting various linking errors as well. Re-installing now doesn't seem to be solving anything.
EDIT: Solved, the problem was that at some point I used 'vcpkg integrate install'. To fix, I had to do 'vcpkg integrate remove', remove the CMAKE_TOOLCHAIN_FILE argument from my build command, and then add 'vcpkg\installed\x64-windows' to my PATH variable.
Thanks for the workaround @lken274 . This works with the CMake build. Just a correction for the PATH, it should be vcpkg\installed\x64-windows\bin
i.e the path to the library binaries.
Description Integration of grpc.lib and related libraries into C++ project fails due to unresolved symbols. Might be similar to #10404
Environment
To Reproduce
Failure logs
Expected behavior Shouldn't throw a linker error if all the header files are resolved properly.
Additional context
<VcpkgAutoLink>false</VcpkgAutoLink>
but the linker error is reduced to following:EDIT: The vcpkg package was compiled on 20th May and not 5th May as previously stated.