468,512 Members | 1,338 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,512 developers. It's quick & easy.

Can I use the uint64_t type on the x86 system?

For example:
uint64_t TX_TAST = 0x0000000400000000;

Can I use it?

Best
Yong.D

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

Can I use it?

Best
Yong.D
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/
alt.comp.lang.learn.c-c++
http://www.contrib.andrew.cmu.edu/~a...FAQ-acllc.html
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
1 post views Thread by fmendoza | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.