AIX C编译器消息无法解释 [英] AIX C compiler message unexplainable

查看:92
本文介绍了AIX C编译器消息无法解释的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好


使用BM XL C / C ++企业版V8.0 for AIX编译我们的源代码

(版本:08.00.0000.0000)生成很多信息性消息

是这样的:


" aaalib.c",第671.1行:1506-412(I)引用变量n ,

未在其声明中初始化。


n是程序中的一个变量,在使用前已分配。使用其他编译编译

相同的源代码,例如AIX版本7.0,gcc on

linux等,不会显示此信息。


感谢你在这方面的帮助,


谢谢,

安德烈亚斯

解决方案

************ @ gmx.net 写道:


大家好


使用BM XL C / C ++企业版V8.0编译我们的源代码对于AIX

(版本:08.00.0000.0000)产生大量的信息性消息

像这样:


" aaalib。 c",第671.1行:1506-412(I)引用变量n,其

未在其声明中初始化。


n是一个变量在程序中,a在使用之前被分配。使用其他编译编译

相同的源代码,例如AIX版本7.0,gcc on

linux等,不会显示此信息。


感谢你在这方面的帮助,


谢谢,

Andreas



请转到IBM服务台。我们不是IBM服务台。


感谢您的理解。

-

jacob navia

jacob at jacob point remcomp point fr

logiciels / informatique
http://www.cs.virginia.edu/~lcc-win32


一个************ @ gmx.net 写道:


大家好


使用BM XL C / C ++企业版V8.0 for AIX编译我们的源代码

(版本:08.00) .0000.0000)产生大量信息性消息

如下:


" aaalib.c",第671.1行:1506-412(I)引用变量n,

未在其声明中初始化。


n是程序中的变量,在使用前已分配。使用其他编译编译

相同的源代码,例如AIX版本7.0,gcc on

linux等,不会显示此信息。


感谢你在这方面的帮助,


谢谢,

Andreas



PS这可能会更好地显示编译器

抱怨,哪里你认为它是错误的

具体的例子,如果没有它是不可能帮助你
无论如何。

-

jacob navia

jacob at jacob point remcomp point fr

logiciels / informatique
http://www.cs.virginia。 edu / ~lcc-win32


10月17日下午1:13,jacob navia< ja ... @ nospam.orgwrote:


andreas.lue ... @ gmx.net写道:


所有


使用BM XL C / C ++企业版V8.0 for AIX编译我们的源

(版本:08.00.0000.0000)产生大量信息消息

像这样:


" aaalib.c",第671行.1:1506-412(I)引用变量n,

未在其声明中初始化。


n是程序中的一个变量,在使用前分配。使用其他编译编译

相同的源代码,例如AIX版本7.0,

linux等上的gcc不会显示此信息。


感谢你在这方面的帮助,


谢谢,

Andreas



PS这可能会更好地显示编译器

抱怨,哪里你认为它是错误的

具体的例子,如果没有它是不可能帮助你
无论如何。


-

jacob navia

jacob at jacob point remcomp point fr

logiciels / informatiquehttp://www.cs.virginia.edu/~lcc-win32



这里是代码剪辑:


void aaalib_trim(char * in){

int n;

for(n =(strlen(in)) - 1; n> = 0 ; n--)

if(!isspace(in [n]))

break;

in [n + 1] =' '\0'';

}


Hi All

Compile a our source with BM XL C/C++ Enterprise Edition V8.0 for AIX
(Version: 08.00.0000.0000) produces a lot of Informational message
like this:

"aaalib.c", line 671.1: 1506-412 (I) Referenced variable "n", which
was not initialized in its declaration.

n is a variable in procedure an is assigned before used. Compiling the
same sources with other compiles such as AIX version 7.0, gcc on
linux etc do not display this information.

Appreciate your help in this regard,

Thanks,
Andreas

解决方案

an************@gmx.net wrote:

Hi All

Compile a our source with BM XL C/C++ Enterprise Edition V8.0 for AIX
(Version: 08.00.0000.0000) produces a lot of Informational message
like this:

"aaalib.c", line 671.1: 1506-412 (I) Referenced variable "n", which
was not initialized in its declaration.

n is a variable in procedure an is assigned before used. Compiling the
same sources with other compiles such as AIX version 7.0, gcc on
linux etc do not display this information.

Appreciate your help in this regard,

Thanks,
Andreas

Please go to IBM help desk. We are NOT IBM help desk.

Thanks for your understanding.
--
jacob navia
jacob at jacob point remcomp point fr
logiciels/informatique
http://www.cs.virginia.edu/~lcc-win32


an************@gmx.net wrote:

Hi All

Compile a our source with BM XL C/C++ Enterprise Edition V8.0 for AIX
(Version: 08.00.0000.0000) produces a lot of Informational message
like this:

"aaalib.c", line 671.1: 1506-412 (I) Referenced variable "n", which
was not initialized in its declaration.

n is a variable in procedure an is assigned before used. Compiling the
same sources with other compiles such as AIX version 7.0, gcc on
linux etc do not display this information.

Appreciate your help in this regard,

Thanks,
Andreas

P.S. It would be maybe better to SHOW where the compiler
complains, where you think it is wrong with
concrete examples, if not it is not possible to help you
anyway.
--
jacob navia
jacob at jacob point remcomp point fr
logiciels/informatique
http://www.cs.virginia.edu/~lcc-win32


On Oct 17, 1:13 pm, jacob navia <ja...@nospam.orgwrote:

andreas.lue...@gmx.net wrote:

Hi All

Compile a our source with BM XL C/C++ Enterprise Edition V8.0 for AIX
(Version: 08.00.0000.0000) produces a lot of Informational message
like this:

"aaalib.c", line 671.1: 1506-412 (I) Referenced variable "n", which
was not initialized in its declaration.

n is a variable in procedure an is assigned before used. Compiling the
same sources with other compiles such as AIX version 7.0, gcc on
linux etc do not display this information.

Appreciate your help in this regard,

Thanks,
Andreas


P.S. It would be maybe better to SHOW where the compiler
complains, where you think it is wrong with
concrete examples, if not it is not possible to help you
anyway.

--
jacob navia
jacob at jacob point remcomp point fr
logiciels/informatiquehttp://www.cs.virginia.edu/~lcc-win32

here is the code snipped:

void aaalib_trim (char *in) {
int n;
for (n = (strlen(in)) - 1; n>= 0; n--)
if (!isspace(in[n]))
break;
in[n+1] = ''\0'';
}


这篇关于AIX C编译器消息无法解释的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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