我从 stackoverflow answer 中提取了一个程序并尝试使用 MSVC++ V6 IDE 编译它,但编译器提示我没有以下任何 .h 包含文件:
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <net/if.h>
#include <ifaddrs.h>
#include <errno.h>
如何获取这些丢失的包含文件?
最佳答案
您上面提到的头文件与基于 linux 的发行版有关。这些用于 linux 上的套接字编程。您可以在基于 Linux 的发行版上轻松运行此代码。
关于c - 在哪里可以找到丢失的 "C"包含文件。 (*。H),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41422181/