-
Notifications
You must be signed in to change notification settings - Fork 3.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
'LightGBM:inet_pton': ambiguous call to overloaded function (compiling source file ..\src\network\liners_socket.app) #5856
Comments
Thanks for using LightGBM and for the report. I was able to reproduce this on latest
LightGBM/windows/LightGBM.vcxproj Line 37 in a2c1dec
MSBuild.exe windows/LightGBM.sln /p:Configuration=DLL /p:Platform=x64 /p:PlatformToolset=v142 I have Visual Studio 2019, and am on Windows 10. Adding LightGBM/src/network/socket_wrapper.hpp Line 59 in a2c1dec
I suspect that would work for you too. I guess that building directly from inside Visual Studio the way you are, Lines 338 to 348 in a2c1dec
I'll try to push a fix for that. Since that the was only added for compatibility with newer MinGW, it should be safe to assume that any build using Visual Studio compilers won't already have |
This issue has been automatically locked since there has not been any recent activity since it was closed. To start a new related discussion, open a new issue at https://github.com/microsoft/LightGBM/issues including a reference to this. |
Hi James,
I am still facing the same issue despite using the sln file from v 3.3.5 uploaded on January 23rd. (https://github.com/microsoft/LightGBM/releases). I have selected Windows SDK 10.0 (latest installed version) and Visual Studio 2022(v143) under general properties. See error log below.
"Thanks for your interest in LightGBM!
I put some of the text of those logs through Google Translate (I cannot read the language they're in, apologies), and saw that it looks like you are hitting this during compilation:
LightGBM has its own implementation of
inet_pton
, but some newer compilers on Windows ship with their own, conflicting implementation.If you searched this project's issue tracker for that error message, you'd see that the same error was reported in #5019, and fixed about 5 months ago in #5159.
Please update to a newer version of LightGBM's source code, from at least after #5159.
If that doesn't resolve the issue you're facing, please click below to see the information we need to efficiently, effectively help you.
how to ask for help (click me)
It is very very very difficult for maintainers to help you when you only report a wall of logs without other context.
Without answers like this, you are asking maintainers here to guess what you're doing, and that will take away our already-limited time from other work on this project.
Can you please provide the answers to the questions I've asked above?
Originally posted by @jameslamb in #5499 (comment)"
The text was updated successfully, but these errors were encountered: