error: dereferencing pointer to incomplete type

来源:互联网 发布:台湾人大陆明星知乎 编辑:程序博客网 时间:2024/05/02 10:43

serv_addr.sin_addr = *((struct in_addr *)host->h_addr);


使用该语句的程序中,需要包含头文件<netdb.h>;否则,编译时会出现错误提示:
error: dereferencing pointer to incomplete type

0 0
原创粉丝点击