当前位置: 技术问答>linux和unix
求助大牛:aix平台下如何编译socket程序成功啊?
来源: 互联网 发布时间:2016-12-26
本文导语: $ /usr/vacpp/bin/xlc_r -q64 -qarch=auto -o sender.o sender.c "sender.c", line 10.16: 1506-007 (S) "struct sockaddr_in" is undefined. "sender.c", line 11.16: 1506-007 (S) "struct sockaddr_in" is undefined. "sender.c", line 16.34: 1506-045 (S) Undeclared ide...
$ /usr/vacpp/bin/xlc_r -q64 -qarch=auto -o sender.o sender.c
"sender.c", line 10.16: 1506-007 (S) "struct sockaddr_in" is undefined.
"sender.c", line 11.16: 1506-007 (S) "struct sockaddr_in" is undefined.
"sender.c", line 16.34: 1506-045 (S) Undeclared identifier MYPORT.
"sender.c", line 17.35: 1506-045 (S) Undeclared identifier INADDR_ANY.
"sender.c", line 18.34: 1506-276 (S) Syntax error: possible missing ')'?
"sender.c", line 20.74: 1506-275 (S) Unexpected text ')' encountered.
"sender.c", line 10.16: 1506-007 (S) "struct sockaddr_in" is undefined.
"sender.c", line 11.16: 1506-007 (S) "struct sockaddr_in" is undefined.
"sender.c", line 16.34: 1506-045 (S) Undeclared identifier MYPORT.
"sender.c", line 17.35: 1506-045 (S) Undeclared identifier INADDR_ANY.
"sender.c", line 18.34: 1506-276 (S) Syntax error: possible missing ')'?
"sender.c", line 20.74: 1506-275 (S) Unexpected text ')' encountered.
|
加上以下5个头文件
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include