Unknown problem...

From: http://blog.csdn.net/creazyapple/article/details/7459875
Deal with this:


1>InfoSenser.obj : error LNK2019: 无法解析的外部符号 _inet_ntoa@4,该符号在函数 “public: void thiscall InfoSenser::printNetInfo(void)” (?printNetInfo@InfoSenser@@QAEXXZ) 中被引用
1>InfoSenser.obj : error LNK2019: 无法解析的外部符号 _gethostbyname@4,该符号在函数 “public:
thiscall InfoSenser::InfoSenser(void)” (??0InfoSenser@@QAE@XZ) 中被引用
1>InfoSenser.obj : error LNK2019: 无法解析的外部符号 _gethostname@8,该符号在函数 “public: thiscall InfoSenser::InfoSenser(void)” (??0InfoSenser@@QAE@XZ) 中被引用
1>InfoSenser.obj : error LNK2019: 无法解析的外部符号 _WSAStartup@8,该符号在函数 “public:
thiscall InfoSenser::InfoSenser(void)” (??0InfoSenser@@QAE@XZ) 中被引用
1>InfoSenser.obj : error LNK2019: 无法解析的外部符号 _WSACleanup@0,该符号在函数 “public: thiscall InfoSenser::~InfoSenser(void)” (??1InfoSenser@@QAE@XZ) 中被引用
1>InfoSenser.obj : error LNK2019: 无法解析的外部符号 _WSAGetLastError@0,该符号在函数 “public:
thiscall InfoSenser::InfoSenser(void)” (??0InfoSenser@@QAE@XZ) 中被引用
1>D:\netbeans-java\CraftPlugins\ClientCtl\ClientCtl\Debug\ClientCtl.exe : fatal error LNK1120: 6 个无法解析的外部命令

Add #pragma comment(lib,"ws2_32.lib")right after the inclusion of header files in the .cpp file could previent this.
==Still need to find out how does this work. It statically load a dll which I don’t know what it is.==
2017/2/9 23:15