-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
MinGW : implicit declaration of function 'getaddrinfo' and 'freeaddrinfo' #350
Comments
stephane
added a commit
that referenced
this issue
Sep 9, 2016
@SESA258801 could check my patch, please? |
stephane
added a commit
that referenced
this issue
Sep 9, 2016
stephane
added a commit
that referenced
this issue
Sep 9, 2016
Build went well. Thx |
stephane
added a commit
that referenced
this issue
Sep 12, 2016
Thank you for the feedback. Merged in v3.0.X and master. |
georgidimov
pushed a commit
to georgidimov/libmodbus
that referenced
this issue
Jul 24, 2017
epsilonrt
pushed a commit
to epsilonrt/libmodbus
that referenced
this issue
Jun 19, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
libmodbus version
3.0.6
Operating system
Win 7 Pro 64bits
Description of the Modbus network (server, client, links, etc)
Build with MinGW
Expected behavior
Build successful
Actual behavior
Build stop with error:
For information:
w32api.h is already included from stdio.h
In file included from c:\mingw\include\w32api.h:59:0,
from c:\mingw\include_mingw.h:73,
from c:\mingw\include\stdio.h:56,
from modbus-tcp.c:19:
c:\mingw\include\sdkddkver.h:184:0: note: this is the location of the previous definition
define _WIN32_WINNT _WIN32_WINNT_WIN2K
I changed the code as follows in modbus-tcp.c and the build went well:
(I moved the #if defined(_WIN32) at the very beginning of the file)
Steps to reproduce the behavior (commands or source code)
Launch build
libmodbus output with debug mode enabled
The text was updated successfully, but these errors were encountered: