Error: LNK2019: unresolved external symbol _FlushIpNetTable...

Hei everyone,

I get that build error while trying to call a function in IP Helper from C code in a VS C++ project. I #include <Iphlpapi.h>. Someone solved this by adding the line:

#pragma comment(lib, "Iphlpapi")

and this also solves my problem. However, I don't understand why. What does that line do Thanks a lot.

/ Rolle



Answer this question

Error: LNK2019: unresolved external symbol _FlushIpNetTable...