当前位置: 技术问答>linux和unix
编译总出错,什么问题,急死我了!大侠帮助啊?
来源: 互联网 发布时间:2015-05-04
本文导语: ./compile tcpserver.c tcpserver.c:1:23: sys/types.h: 没有那个文件或目录 tcpserver.c:2:23: sys/param.h: 没有那个文件或目录 tcpserver.c:3:19: netdb.h: 没有那个文件或目录 In file included from tcpserver.c:20: error.h:4:19: errno.h: 没有...
./compile tcpserver.c
tcpserver.c:1:23: sys/types.h: 没有那个文件或目录
tcpserver.c:2:23: sys/param.h: 没有那个文件或目录
tcpserver.c:3:19: netdb.h: 没有那个文件或目录
In file included from tcpserver.c:20:
error.h:4:19: errno.h: 没有那个文件或目录
tcpserver.c: In function `doit':
tcpserver.c:205: `errno' undeclared (first use in this function)
tcpserver.c:205: (Each undeclared identifier is reported only once
tcpserver.c:205: for each function it appears in.)
tcpserver.c: In function `main':
tcpserver.c:348: warning: assignment makes pointer from integer without a cast
tcpserver.c:351: dereferencing pointer to incomplete type
make: *** [tcpserver.o] Error 1
=====================================
总是那个没有那个文件文件或目录,不知道什么原因,搞了几天都是这个问题,帮帮小弟啦!
tcpserver.c:1:23: sys/types.h: 没有那个文件或目录
tcpserver.c:2:23: sys/param.h: 没有那个文件或目录
tcpserver.c:3:19: netdb.h: 没有那个文件或目录
In file included from tcpserver.c:20:
error.h:4:19: errno.h: 没有那个文件或目录
tcpserver.c: In function `doit':
tcpserver.c:205: `errno' undeclared (first use in this function)
tcpserver.c:205: (Each undeclared identifier is reported only once
tcpserver.c:205: for each function it appears in.)
tcpserver.c: In function `main':
tcpserver.c:348: warning: assignment makes pointer from integer without a cast
tcpserver.c:351: dereferencing pointer to incomplete type
make: *** [tcpserver.o] Error 1
=====================================
总是那个没有那个文件文件或目录,不知道什么原因,搞了几天都是这个问题,帮帮小弟啦!
|
你能将源代码给我看么?chenj@duitong.com
明天告诉你为什么。
明天告诉你为什么。