Error linking Iphlpap windows library
I'm trying to like the
Iphlpapto use the
GetAdaptersInfofunction but I'm getting this error:
:-1: error: LNK1181: cannot open input file 'Iphlpap.lib'
That is how I'm trying to link in my pro file:
win32:LIBS += -lIphlpap
From a quick look, that's a Windows CE module.
What are you targeting ?
With which version of Qt ?
Which compiler ?
Im targeting to use the method
GetAdaptersInfo, I'm using Qt 5.10 and MSVC 2015 64bit
So this GetAdapterInfo ?
Looks like the library name is
Iphlpapi. Note that this function is is supposed to be replaced by
GetAdaptersAddressessince Windows XP
@SGaist I saw that immediately in the title and came in here to say it, but as usual you beat me to it. ;)
Thank you guys, it's solved.