我從一個stackoverflow answer提取的程序,並試圖編譯它,使用MSVC++ IDE V6,但編譯器抱怨我沒有任何以下.H包含文件:哪裏可以找到缺少的「C」包含文件。 (* .h)中
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <net/if.h>
#include <ifaddrs.h>
#include <errno.h>
如何獲取這些缺少包含文件?
很可能是因爲沒有使用'gcc'來運行你的程序。我不是MSVC和基於Windows開發的粉絲,但是您可以通過在Windows上使用[link](https://mingw-w64.org/doku.php/download)安裝'Mingw-w64'來編譯程序。 。 – hmofrad
副本: –
user3629249