Can I use the uint64_t type on the x86 system?

J

Jack Klein

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.
 
R

Rolf Magnus

Yong.D said:
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".
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,754
Messages
2,569,521
Members
44,995
Latest member
PinupduzSap

Latest Threads

Top