When I [Update](https://github.com/microsoft/vcpkg/pull/32747) etcd-cpp-apiv3 version from 0.14.2 to 0.15.2, I get two build error: ```` fatal error LNK1107: invalid or corrupt file: cannot read at 0x330 ```` ```` error: use of undeclared identifier 'IPPROTO_TCP' ```` The first error was because the target `etcd-cpp-api-core-objects` linked the wrong `libprotobufd.dll` file instead of the .lib file, I used the usage provided by vcpkg to link the correct .lib file to fix this error. Another error was because `IPPROTO_TCP` was missing declaration `"<netinet/in.h>"`, I added it to fix this error. --------- Signed-off-by: Tao He <linzhu.ht@alibaba-inc.com> Co-authored-by: Zhao Liu <v-zhli17@microsoft.com> Co-authored-by: Tao He <linzhu.ht@alibaba-inc.com> |
||
|---|---|---|
| .. | ||
| v3 | ||
| CMakeLists.txt | ||
| Client.cpp | ||
| KeepAlive.cpp | ||
| Response.cpp | ||
| SyncClient.cpp | ||
| Value.cpp | ||
| Watcher.cpp | ||