Oracle Pro-C支持长数据类型? [英] Oracle Pro-C supports long long data type?

查看:55
本文介绍了Oracle Pro-C支持长数据类型?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在使用以下Oracle Proc-C编译器:

Pro * C / C ++:版本8.1.7.0.0 - 生产于6月15日星期四15 :57:32 2006


(c)版权所有2000 Oracle Corporation。保留所有权利。


我喜欢使用long long整数类型(64位),但似乎

Oracle在执行后不喜欢它,给我错误代码-1460,

对此有什么想法吗?

thx

Hi,
I am using following Oracle Proc-C compiler:
Pro*C/C++: Release 8.1.7.0.0 - Production on Thu Jun 15 15:57:32 2006

(c) Copyright 2000 Oracle Corporation. All rights reserved.

I like to use "long long" integer type(64 bit), but it seems that
Oracle doesn''t like it after execution, and giving me error code -1460,
any idea about this?
thx

推荐答案

2006年6月15日12:59:27 -0700

我们***** @ yahoo.com <我们***** @ yahoo.com>写道:
On 15 Jun 2006 12:59:27 -0700
"we*****@yahoo.com" <we*****@yahoo.com> wrote:
我正在使用以下Oracle Proc-C编译器:
Pro * C / C ++:版本8.1.7.0.0 - 生产于6月15日星期四15:57: 32 2006

(c)版权所有2000 Oracle Corporation。保留所有权利。

我喜欢使用long long。整数类型(64位),但似乎在执行后Oracle并不喜欢它,并给我错误代码
-1460,对此有何看法?
I am using following Oracle Proc-C compiler:
Pro*C/C++: Release 8.1.7.0.0 - Production on Thu Jun 15 15:57:32 2006

(c) Copyright 2000 Oracle Corporation. All rights reserved.

I like to use "long long" integer type(64 bit), but it seems that
Oracle doesn''t like it after execution, and giving me error code
-1460, any idea about this?







sizeof(long long int)* 8报告?


应为64.如果是Oracle不能支持bigint(64或128)位宽,

那么它是正确的抱怨。


你能给出一个错误样本吗? ?另外,GNU

编译器有什么问题?


-

问候,Ed :: http://www.linuxwarez.co.uk

只是另一个Linux人物

对LONGHORN / VISTA说不 - 谷歌:微软如何销售

公众请好莱坞



What does

sizeof( long long int ) * 8 report?

Should be 64. If Oracle cannot support bigint(64, or 128) bits wide,
then it''s got right to complain.

Can you give a sample of the error? Also, what''s wrong with the GNU
compiler?

--
Regards, Ed :: http://www.linuxwarez.co.uk
just another linux person
Say NO to LONGHORN/VISTA -- google this: "how microsoft is selling
out the public to please hollywood"


ed< ed@noreply.com>写道:
ed <ed@noreply.com> writes:
2006年6月15日12:59:27 -0700
我们***** @ yahoo.com <我们***** @ yahoo.com>写道:
On 15 Jun 2006 12:59:27 -0700
"we*****@yahoo.com" <we*****@yahoo.com> wrote:
我正在使用以下Oracle Proc-C编译器:
Pro * C / C ++:版本8.1.7.0.0 - 生产于6月15日星期四15:57: 32 2006

(c)版权所有2000 Oracle Corporation。保留所有权利。

我喜欢使用long long。整数类型(64位),但似乎在执行后Oracle并不喜欢它,并给我错误代码
-1460,对此有何看法?
I am using following Oracle Proc-C compiler:
Pro*C/C++: Release 8.1.7.0.0 - Production on Thu Jun 15 15:57:32 2006

(c) Copyright 2000 Oracle Corporation. All rights reserved.

I like to use "long long" integer type(64 bit), but it seems that
Oracle doesn''t like it after execution, and giving me error code
-1460, any idea about this?





sizeof(long long int)* 8报告?

应该是64。



What does

sizeof( long long int ) * 8 report?

Should be 64.




仅当char为8位时。情况并非总是如此。例如,

很多DSP都有32位字符。


-

M?ns Rullg?rd mr*@inprovide.com


"我们***** @ yahoo.com" <我们***** @ yahoo.com>写道:
"we*****@yahoo.com" <we*****@yahoo.com> writes:
我正在使用以下Oracle Proc-C编译器:
Pro * C / C ++:版本8.1.7.0.0 - 生产于2006年6月15日星期五15:57:32

(c)版权所有2000 Oracle Corporation。保留所有权利。

我喜欢使用long long。整数类型(64位),但似乎在执行后Oracle不喜欢它,给我错误代码-1460,
对此有什么想法吗?
I am using following Oracle Proc-C compiler:
Pro*C/C++: Release 8.1.7.0.0 - Production on Thu Jun 15 15:57:32 2006

(c) Copyright 2000 Oracle Corporation. All rights reserved.

I like to use "long long" integer type(64 bit), but it seems that
Oracle doesn''t like it after execution, and giving me error code -1460,
any idea about this?




如果编译器长时间不支持,它应该无法编译使用它的任何

程序。如果您收到运行时错误,那么

else正在进行中。也许编译器支持long long但是

运行时库不支持。我们不知道错误代码-1460

可能意味着什么,如果没有看到

实际代码,我们无法猜测问题是什么。


试试这些课程:


========================= ===============

#include< stdio.h>

#include< limits.h>

int main(无效)

{

printf(long long is%d bits\ n,(int)sizeof(long long) * CHAR_BIT);

返回0;

}

================== ======================

(输出应为long long is 64 bits)

>
========================================

#include< stdio.h>

int main(无效)

{

long long x = 42;

printf(" x =%d \ n",(int)x);

返回0;

}

========================================

(输出应为x = 42)


==================== ====================

#include< stdio.h>

#include< limits。 h>

int main(无效)

{

long long x = LLONG_MAX;

printf(" x =%lld \ n",x);

返回0;

}

========== ==============================

(输出应为x = 9223372036854775807)


正确的输出可能会有所不同,即长期为
大于64位的情况。


- -

Keith Thompson(The_Other_Keith) ks***@mib.org < http:// www .ghoti.net / ~kst>

圣地亚哥超级计算机中心< *> < http://users.sdsc.edu/~kst>

我们必须做点什么。这是事情。因此,我们必须这样做。



If a compiler doesn''t support long long, it should fail to compile any
program that uses it. If you''re getting a runtime error, something
else is going on. Perhaps the compiler supports long long but the
runtime library doesn''t. We have no idea what "error code -1460"
might mean, and we can''t guess what the problem is without seeing
actual code.

Try these programs:

========================================
#include <stdio.h>
#include <limits.h>
int main(void)
{
printf("long long is %d bits\n", (int)sizeof(long long) * CHAR_BIT);
return 0;
}
========================================
(output should be "long long is 64 bits")

========================================
#include <stdio.h>
int main(void)
{
long long x = 42;
printf("x = %d\n", (int)x);
return 0;
}
========================================
(output should be "x = 42")

========================================
#include <stdio.h>
#include <limits.h>
int main(void)
{
long long x = LLONG_MAX;
printf("x = %lld\n", x);
return 0;
}
========================================
(output should be "x = 9223372036854775807")

The correct output may vary in the unlikely event that long long is
bigger than 64 bits.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.


这篇关于Oracle Pro-C支持长数据类型?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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