ilink64 Error Fatal: Unable to open file 'IPHLPAPI.LIB'

Viewed 49

C++Builder Berlin 10.2 Update 2

I have a project that compiles fine in 32bit, but after making a number of mods to the code for 64bit and re-compiling, I get this error:

[ilink64 Error] Fatal: Unable to open file 'IPHLPAPI.LIB'

I found the file in C:\Program Files (x86)\Windows Kits\10\Lib\10.0.15063.0\um\x64

and tried again, this time I get:

[ilink64 Error] Fatal: Archive file 'C:...\IPHLPAPI.LIB' lists no symbols in its dictionary.

The only reference I have found here is LINK : fatal error LNK1104: cannot open file "Iphlpapi.lib"

Copying the file to the source folder, and adding the path to the Library Path in the Project Options, does not work for me. So, does anyone have any ideas as to which version of IPHLPAPI.LIB I need, and where to get it from?

1 Answers

The problem turned out to be a #pragma link and an #include to iphlpapi in a unit file written around 4 years ago, found it by doing a Find In Files, thanks to M.M for the pointer in the right direction..

Related