编译错误列表 [英] Compile error listing

查看:203
本文介绍了编译错误列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否列出了编译错误的含义?例如:


" hdb_log.c",第163.22行:1506-046(S)语法错误。

" hdb_log.c",line 160.20:1506-098(E)缺少参数。

make:1254-004最后一个命令的错误代码是1.


如何我能找出1506-046和1506-098的含义吗?


感谢您的帮助。

解决方案

2006年3月2日16:23:39 -0800,soccertl < LA ******* @ cox.net>写道:

是否列出了编译错误的含义?例如:

" hdb_log.c",第163.22行:1506-046(S)语法错误。
" hdb_log.c",第160.20行:1506-098(E)缺少参数。
make:1254-004最后一个命令的错误代码是1.

如何找出1506-046和1506-098的含义?




大概这些错误消息是由编译器排泄的。我先打算用b $ b来获取编译器手册。


-

Dan Henry


> 2006年3月2日16:23:39 -0800,soccertl < LA ******* @ cox.net>写道:

是否列出了编译错误的含义?


编号语言标准只要求编译器在特定情况下发出诊断信息

,但编译器可以另外发出诊断信息

任何

它喜欢的原因。这些诊断所说的(并且意味着)取决于

的实现。具体实现细节一般在外面



范围comp.lang.c.

例如:

" hdb_log.c",第163.22行:1506-046(S)语法错误。
" hdb_log.c",第160.20行:1506-098(E)缺少参数。
make :1254-004最后一个命令的错误代码是1.

如何找出1506-046和1506-098的含义?



大概他们的意思是''语法错误''和''缺少参数''



Dan Henry写道:大概这些错误信息是排泄的由您的编译器。我会首先找到编译器手册。




或者,如果你想节省一些时间,只需打开hdb_log.c即可。围绕线路



到163并检查语法错误是什么。


如果它实际上不是你的代码,然后几乎可以肯定代码依赖

编译器扩展,并且你未能激活那些

扩展,

或者他们使用的编译器不存在。


-

彼得




soccertl写道:

是否列出了编译错误的含义?例如:

" hdb_log.c",第163.22行:1506-046(S)语法错误。
" hdb_log.c",第160.20行:1506-098(E)缺少参数。
make:1254-004最后一个命令的错误代码是1.

如何找出1506-046和1506-098的含义?

感谢您的帮助。




请参阅编译器手册。发布一个最小的代码片段

帮助我们所有人。


Is there a listing of what the compile errors mean? For example:

"hdb_log.c", line 163.22: 1506-046 (S) Syntax error.
"hdb_log.c", line 160.20: 1506-098 (E) Missing argument(s).
make: 1254-004 The error code from the last command is 1.

How do I find out what 1506-046 and 1506-098 mean?

Thanks for any help.

解决方案

On 2 Mar 2006 16:23:39 -0800, "soccertl" <la*******@cox.net> wrote:

Is there a listing of what the compile errors mean? For example:

"hdb_log.c", line 163.22: 1506-046 (S) Syntax error.
"hdb_log.c", line 160.20: 1506-098 (E) Missing argument(s).
make: 1254-004 The error code from the last command is 1.

How do I find out what 1506-046 and 1506-098 mean?



Presumably those error messages are excreted by your compiler. I''d
reach for the compiler manual first.

--
Dan Henry


> On 2 Mar 2006 16:23:39 -0800, "soccertl" <la*******@cox.net> wrote:

Is there a listing of what the compile errors mean?
No. The language standard only requires compilers to issue diagnostics
in specific cases, but a compiler can otherwise issue a diagnostic for
any
reason it likes. What those diagnostics say (and mean) is up to the
implementation. Specific implementation details are generally outside
the
scope of comp.lang.c.
For example:

"hdb_log.c", line 163.22: 1506-046 (S) Syntax error.
"hdb_log.c", line 160.20: 1506-098 (E) Missing argument(s).
make: 1254-004 The error code from the last command is 1.

How do I find out what 1506-046 and 1506-098 mean?


Presumably they mean ''Syntax error'' and ''Missing argument(s)''
respectively.

Dan Henry wrote: Presumably those error messages are excreted by your compiler. I''d
reach for the compiler manual first.



Or, if you want to save some time, just open "hdb_log.c" around lines
160
through 163 and check what the syntax error is.

If it''s not actually your code, then almost certainly the code relies
on
compiler extensions and either you have failed to activate those
extensions,
or they don''t exist with the compiler you''re using.

--
Peter



soccertl wrote:

Is there a listing of what the compile errors mean? For example:

"hdb_log.c", line 163.22: 1506-046 (S) Syntax error.
"hdb_log.c", line 160.20: 1506-098 (E) Missing argument(s).
make: 1254-004 The error code from the last command is 1.

How do I find out what 1506-046 and 1506-098 mean?

Thanks for any help.



Refer to your compiler manual. Posting a minimal code snippet would
help us all.


这篇关于编译错误列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆