-
Notifications
You must be signed in to change notification settings - Fork 18
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
Add missing -lWs2_32 flag when compiling on Windows #22
Comments
I'm worried about including this on all Windows builds. It might require some serious configury. There is already configure.ac code for finding notes:
but this assumes that the function being searched for is called But anyway the configure.ac section called “ntohs, ntohl” is the place to look. Perhaps an AC_LINK_IFELSE is required; perhaps it will be as simple as adding |
I primarily needed some hints about how to proceed, so thanks a lot for the first pointer. I'm not claiming that this library is needed unconditionally, I just want to find the correct way to fix this. Apparently the cross-compiled version works fine, so the configuration is not entirely off :) From #include <winsock2.h>
int main()
{
ntohs(0x0020);
ntohl(0x03040020);
return 0;
} Compiling on MSYS2:
In CMD:
According to https://docs.microsoft.com/en-us/windows/desktop/api/winsock/nf-winsock-ntohs one requires at least Windows 8 and the It confuses me why the configure is checking for The output from
But the code
seems wrong for various reasons:
|
When compiling lcdf-typetools with msys2 on Windows, I had to change
into
to make the build succeed. I didn't yet try to figure out where to change this (I assume somewhere in
configure.ac
).Otherwise I get the following error(s):
The text was updated successfully, but these errors were encountered: