-
Notifications
You must be signed in to change notification settings - Fork 123
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix error LNK1107 and undeclared identifier 'IPPROTO_TCP' (#244)
When I [Update](microsoft/vcpkg#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>
- Loading branch information
1 parent
0eee75b
commit e5dc903
Showing
2 changed files
with
21 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters