‘inet_pton’ was not declared in this scope

linux g++ ‘inet_pton’ was not declared in this scope

缺少头文件

 

#include <arpa/inet.h>

你可能感兴趣的:(‘inet_pton’ was not declared in this scope)