C++ 中error: ‘exit’ was not declared in this scope 的解决方法
添加头文件#include <cstdlib>
error: ‘inet_ntoa’ was not declared in this scope
#define _BSD_SOURCE
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
C: 'unlink' was not declared in this scope
#include <unistd.h>