error: ‘struct hostent’ has no member named ‘h_addr’

这是编译选项形成的。code 例如,以下的编译选项就可能出现问题: server > gcc -pedantic -Os -c client.c -o client.o -std=c99 ip 在netdb.h文件中,能够找到hostent的定义:ci /* Description of data base entry for a single host. */ struct hostent {
相关文章
相关标签/搜索