'LightGBM:inet_pton': ambiguous call to overloaded function (compiling source file ..\src\network\liners_socket.app) #5856
Description
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:
error C2668: "LightGBM::inet_pton": ambiguous call to overloaded function (compile source file..\src\network \linkers_socket.cpp)
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.
- are you installing the Python package / R package? just building the CLI? something else?
- how did you try to install LightGBM?
- what version are you using?
- it seems like you might be using Visual Studio to compile LightGBM... what version of Visual Studio? Did you customize anything about the installation?
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)"