当前位置: 技术问答>linux和unix
请高手看一下!!挺急的
来源: 互联网 发布时间:2015-08-08
本文导语: 在UNIX下的服务端程序, 编译出错: cc servtest.c -o servtest "/usr/include/sys/byteorder.h", line 47: error: syntax error, probably missing " ,", ";" or "=" "/usr/include/sys/byteorder.h", line 47: error: Syntax error before or at: ntohl "/usr/inc...
在UNIX下的服务端程序,
编译出错:
cc servtest.c -o servtest
"/usr/include/sys/byteorder.h", line 47: error: syntax error, probably missing "
,", ";" or "="
"/usr/include/sys/byteorder.h", line 47: error: Syntax error before or at: ntohl
"/usr/include/sys/byteorder.h", line 47: warning: function prototype parameters
must have types
"/usr/include/sys/byteorder.h", line 47: warning: declaration missing specifiers
: assuming "int"
"/usr/include/sys/byteorder.h", line 47: warning: function prototype parameters
must have types
"/usr/include/sys/byteorder.h", line 47: warning: declaration missing specifiers
: assuming "int"
"/usr/include/sys/byteorder.h", line 48: error: syntax error, probably missing "
,", ";" or "="
"/usr/include/sys/byteorder.h", line 48: error: Syntax error before or at: ntohs
"/usr/include/sys/byteorder.h", line 48: warning: function prototype parameters
must have types
"/usr/include/sys/byteorder.h", line 48: warning: declaration missing specifiers
: assuming "int"
"/usr/include/sys/byteorder.h", line 48: warning: function prototype parameters
must have types
怎么回事?
是头文件的事呢,
还是程序的事???????
编译出错:
cc servtest.c -o servtest
"/usr/include/sys/byteorder.h", line 47: error: syntax error, probably missing "
,", ";" or "="
"/usr/include/sys/byteorder.h", line 47: error: Syntax error before or at: ntohl
"/usr/include/sys/byteorder.h", line 47: warning: function prototype parameters
must have types
"/usr/include/sys/byteorder.h", line 47: warning: declaration missing specifiers
: assuming "int"
"/usr/include/sys/byteorder.h", line 47: warning: function prototype parameters
must have types
"/usr/include/sys/byteorder.h", line 47: warning: declaration missing specifiers
: assuming "int"
"/usr/include/sys/byteorder.h", line 48: error: syntax error, probably missing "
,", ";" or "="
"/usr/include/sys/byteorder.h", line 48: error: Syntax error before or at: ntohs
"/usr/include/sys/byteorder.h", line 48: warning: function prototype parameters
must have types
"/usr/include/sys/byteorder.h", line 48: warning: declaration missing specifiers
: assuming "int"
"/usr/include/sys/byteorder.h", line 48: warning: function prototype parameters
must have types
怎么回事?
是头文件的事呢,
还是程序的事???????
|
基本上头文件是不会有问题的
检查一下程序相关行,看有没有什么冲突或手误
检查一下程序相关行,看有没有什么冲突或手误
您可能感兴趣的文章:
本站(WWW.)旨在分享和传播互联网科技相关的资讯和技术,将尽最大努力为读者提供更好的信息聚合和浏览方式。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。