On Wednesday, 7 September 2022 at 20:23:03 UTC, Injeckt wrote:
Convert it to D:
extern(C) const(char)* inet_ntop(int af, const(void)* src,
char* dst, socklen_t size);
Win32 API functions need to be `extern(Windows)`.
You probably also need:
alias socklen_t = ...;
`alias socklen_t = int`
It doesn't work. "Reference to an unresolved external symbol
That's a linker error. You need to link with `ws2_32.lib`.