471,850 Members | 1,074 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,850 software developers and data experts.

Can I use the uint64_t type on the x86 system?

For example:
uint64_t TX_TAST = 0x0000000400000000;

Can I use it?


Oct 19 '06 #1
2 6274
On 18 Oct 2006 18:01:50 -0700, "Yong.D" <di******@gmail.comwrote in
For example:
uint64_t TX_TAST = 0x0000000400000000;

Can I use it?

I don't know, your compiler does. What does it say when you compile a
source file including the line above? What does your compiler's
documentation say? Does your compiler provide a header file somewhere
that provides a macro or typedef that defines unit64_T? If it does,
have you included it?

uint64_t is a required type in any C compiler that conforms to then
1999 or later version of the C language standard. It is not part of
the C++ language, but some C++ compilers provide it as an extension.

The real answer is: if your C++ compiler supports this type as an
extension, and if you include the proper header, then you can use the
type. Otherwise you cannot.

Jack Klein
Home: http://JK-Technology.Com
FAQs for
comp.lang.c http://c-faq.com/
comp.lang.c++ http://www.parashift.com/c++-faq-lite/
Oct 19 '06 #2
Yong.D wrote:
For example:
uint64_t TX_TAST = 0x0000000400000000;

Can I use it?
Well, uint64_t is not a standard C++ type. In C99, it is (if supported by
the compiler) defined as a typedef in stdint.h. Some C++ compilers do have
that header, too, so the answer is "it depends".

Oct 19 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Jhy-Chun Wang | last post: by
5 posts views Thread by jorfei | last post: by
4 posts views Thread by Richard Cavell | last post: by
3 posts views Thread by Mike in Paradise | last post: by
6 posts views Thread by Dom Jackson | last post: by
1 post views Thread by Przemyslaw Koprowski | last post: by
reply views Thread by NeoPa | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.