gcc inet_addr was not declared in this scope

转自:http://blog.csdn.net/iamoyjj/article/details/6305868


缺少头文件

 

#include <arpa/inet.h>



你可能感兴趣的:(gcc inet_addr was not declared in this scope)