Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems building on windows #88

Open
boulabiar opened this issue Sep 25, 2024 · 0 comments
Open

Problems building on windows #88

boulabiar opened this issue Sep 25, 2024 · 0 comments

Comments

@boulabiar
Copy link

boulabiar commented Sep 25, 2024

there are 2 problems when compiling on windows of using variables not declared:

$ gcc mdns.c
1.//
mdns.c: In function 'open_client_sockets':
mdns.c:487:14: error: 'IP_ADAPTER_ADDRESSES_XP' {aka 'struct _IP_ADAPTER_ADDRESSES_XP'} has no member named 'TunnelType'
if (adapter->TunnelType == TUNNEL_TYPE_TEREDO)
^~

2.//
mdns.c: In function 'open_service_sockets':
mdns.c:672:24: error: 'in4addr_any' undeclared (first use in this function); did you mean 'in6addr_any'?
sock_addr.sin_addr = in4addr_any;
^~~~~~~~~~~
in6addr_any
mdns.c:672:24: note: each undeclared identifier is reported only once for each function it appears in

I also needed to link to -lwsock32 -lWs2_32 -liphlpapi

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

No branches or pull requests

1 participant