LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 957|回复: 2

Gcc 错误分析报告 非常有用

[复制链接]
发表于 2002-12-1 16:16:33 | 显示全部楼层 |阅读模式
A same mistake report Gcc I hope it can help you ! )
   warning : comparison between pointer and integer
This was generated from 'if(strster(line,"word")!=NULL)'strstr return NULL or pointers,I was only interested in the fact that a string had been found, not where it was.

   error  floppyto.c:782: parse error at end of input
floppyto,c is the program name, 782 is the line number but it is one greater than file length, This is because of unblanced {} enbalanced comments /* */


  error Segmetion error.
\x{4F60}\x{53EF} \x{80FD} \x{8BBF}\x{95EE}\x{88AB}\x{4FDD}\x{62A4}\x{7684}\x{5185}\x{5B58} \x{975E}\x{6CD5}\x{5185}\x{5B58}\x{5730}\x{5740}.
  error Subcripted value is neither array nor pointer
Attempt to subscript a scalar variable
  error unterminated '#if' confitional
#endif preprocessor required.
   warning: passing arg 1 of 'cpustr' makes integer from pointer without a cast
This is the code causing the problem:
void cpustr ( char item )
main()
{
  char src[]="martin leslie";
  cpystr(src);
}
{
   cpystr( char item[])
}
发表于 2002-12-1 16:30:40 | 显示全部楼层
你到那儿找来的?
 楼主| 发表于 2002-12-1 22:03:45 | 显示全部楼层
Kdevelop
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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