Skip to content

fix: Visual Studio build#832

Open
anshad-k wants to merge 1 commit intorobertdavidgraham:masterfrom
anshad-k:master
Open

fix: Visual Studio build#832
anshad-k wants to merge 1 commit intorobertdavidgraham:masterfrom
anshad-k:master

Conversation

@anshad-k
Copy link

@anshad-k anshad-k commented Nov 5, 2025

Added utils-extract files to vs10.
Closes #824

@Summer20130725
Copy link

E:\Github\masscan\src\massip-addr.c(293,3): error C2078: too many initialization settings
ScreenShot_2026-01-11_220516_849

Why is that? Shouldn't the initial value be written like this?

{"1::2", {.ipv6 = {0x0001000000000000, 0x0000000000000002}, .version = 6}},
{"2::1", {.ipv6 = {0x0002000000000000, 0x0000000000000001}, .version = 6}},
{"1:2::", {.ipv6 = {0x0001000200000000, 0x0000000000000000}, .version = 6}},
{NULL, {{0, 0}, 0}}
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MSVC tries to initialize the unsigned ipv4 of the union given in struct ipaddress instead of ipv6address ipv6.
Also can be fixed with just {NULL} here.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you update the code? I'd like to pull it to my local machine and compile it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

cannot build exe

2 participants