嘉应学院梅水徽音

 找回密码
 申请帐号

QQ登录

只需一步,快速开始

搜索
查看: 2313|回复: 1

[求助]linux(fedora7)下C语言编译出错解决???

[复制链接]
发表于 2007-6-3 01:36 | 显示全部楼层 |阅读模式
<P>出错 如下</P>
<P>   请求高手帮忙,低手就帮忙顶起!谢谢</P>

<P ><FONT face="Times New Roman" size=3>[root@yantry softwares]# cd mystar_for_2.56</FONT></P>
<P ><FONT face="Times New Roman" size=3></FONT></P>
<P ><FONT face="Times New Roman" size=3>[root@yantry mystar_for_2.56]# make</FONT></P>
<P ><FONT face="Times New Roman" size=3></FONT></P>
<P ><FONT face="Times New Roman" size=3>gcc -O2 -o mystar.o -c mystar.c</FONT></P>
<P ><FONT face="Times New Roman" size=3></FONT></P>
<P ><FONT size=3><FONT face="Times New Roman">在包含自 mystar.c:7 的文件中:</FONT></FONT></P>
<P ><FONT face="Times New Roman" size=3></FONT></P>
<P ><FONT size=3><FONT face="Times New Roman">mystar.h:21:20: 错误:libnet.h:没有那个文件或目录</FONT></FONT></P>
<P ><FONT face="Times New Roman" size=3></FONT></P>
<P ><FONT face="Times New Roman" size=3>In file included from mystar.c:9:</FONT></P>
<P ><FONT face="Times New Roman" size=3></FONT></P>
<P ><FONT size=3><FONT face="Times New Roman">sendpacket.h:11: 错误:expected ‘)’ before ‘*’ token</FONT></FONT></P>
<P ><FONT face="Times New Roman" size=3></FONT></P>
<P ><FONT size=3><FONT face="Times New Roman">sendpacket.h:12: 错误:expected ‘)’ before ‘*’ token</FONT></FONT></P>
<P ><FONT face="Times New Roman" size=3></FONT></P>
<P ><FONT size=3><FONT face="Times New Roman">sendpacket.h:13: 错误:expected ‘)’ before ‘*’ token</FONT></FONT></P>
<P ><FONT face="Times New Roman" size=3></FONT></P>
<P ><FONT size=3><FONT face="Times New Roman">sendpacket.h:14: 错误:expected ‘)’ before ‘*’ token</FONT></FONT></P>
<P ><FONT face="Times New Roman" size=3></FONT></P>
<P ><FONT size=3><FONT face="Times New Roman">sendpacket.h:15: 错误:expected ‘)’ before ‘*’ token</FONT></FONT></P>
<P ><FONT face="Times New Roman" size=3></FONT></P>
<P ><FONT size=3><FONT face="Times New Roman">mystar.c: 在函数 ‘main’ 中:</FONT></FONT></P>
<P ><FONT face="Times New Roman" size=3></FONT></P>
<P ><FONT size=3><FONT face="Times New Roman">mystar.c:54: 错误:‘libnet_t’ 未声明 (在此函数内第一次使用)</FONT></FONT></P>
<P ><FONT face="Times New Roman" size=3></FONT></P>
<P ><FONT size=3><FONT face="Times New Roman">mystar.c:54: 错误:(即使在一个函数内多次出现,每个未声明的标识符在其</FONT></FONT></P>
<P ><FONT face="Times New Roman" size=3></FONT></P>
<P ><FONT size=3><FONT face="Times New Roman">mystar.c:54: 错误:所在的函数内只报告一次。)</FONT></FONT></P>
<P ><FONT face="Times New Roman" size=3></FONT></P>
<P ><FONT size=3><FONT face="Times New Roman">mystar.c:54: 错误:‘l’ 未声明 (在此函数内第一次使用)</FONT></FONT></P>
<P ><FONT face="Times New Roman" size=3></FONT></P>
<P ><FONT size=3><FONT face="Times New Roman">mystar.c:56: 错误:‘LIBNET_ERRBUF_SIZE’ 未声明 (在此函数内第一次使用)</FONT></FONT></P>
<P ><FONT face="Times New Roman" size=3></FONT></P>
<P ><FONT size=3><FONT face="Times New Roman">mystar.c:85: 错误:‘LIBNET_LINK’ 未声明 (在此函数内第一次使用)</FONT></FONT></P>
<P ><FONT face="Times New Roman" size=3></FONT></P>
<P ><FONT size=3><FONT face="Times New Roman">mystar.c:94: 警告:赋值时将整数赋给指针,未作类型转换</FONT></FONT></P>
<P ><FONT face="Times New Roman" size=3></FONT></P>
<P ><FONT size=3><FONT face="Times New Roman">mystar.c: 在函数 ‘sig_intr’ 中:</FONT></FONT></P>
<P ><FONT face="Times New Roman" size=3></FONT></P>
<P ><FONT size=3><FONT face="Times New Roman">mystar.c:390: 错误:‘libnet_t’ 未声明 (在此函数内第一次使用)</FONT></FONT></P>
<P ><FONT face="Times New Roman" size=3></FONT></P>
<P ><FONT size=3><FONT face="Times New Roman">mystar.c:390: 错误:‘l’ 未声明 (在此函数内第一次使用)</FONT></FONT></P>
<P ><FONT face="Times New Roman" size=3></FONT></P>
<P ><FONT size=3><FONT face="Times New Roman">mystar.c:391: 错误:‘LIBNET_ERRBUF_SIZE’ 未声明 (在此函数内第一次使用)</FONT></FONT></P>
<P ><FONT face="Times New Roman" size=3></FONT></P>
<P ><FONT size=3><FONT face="Times New Roman">mystar.c:395: 错误:‘LIBNET_LINK’ 未声明 (在此函数内第一次使用)</FONT></FONT></P>
<P ><FONT face="Times New Roman" size=3></FONT></P>
<P ><FONT size=3><FONT face="Times New Roman">make: *** [mystar.o] 错误 1</FONT></FONT></P>
<P ><FONT face="Times New Roman" size=3></FONT></P>
<P ><FONT face="Times New Roman" size=3>[root@yantry mystar_for_2.56]# </FONT></P>
<P ></P>
回复

使用道具 举报

院系
计算机学院
级别
2000级
发表于 2007-11-30 00:04 | 显示全部楼层
<font size="3"><font face="Times New Roman">libnet.h:<br>缺少libnet这个库的头文件<br></font></font>
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 申请帐号

本版积分规则

联系我们|嘉应学院梅水徽音 ( 粤ICP备05007487号 )

GMT+8, 2025-5-11 11:54 , Processed in 0.030683 second(s), 19 queries , Gzip On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表