Click to See Complete Forum and Search --> : Question about Int64.
George2
April 22nd, 2003, 09:32 AM
Hi, everyone!
When reading source code of others, I find they often
use int64 to represent 8-bit integers. I have referenced
MSDN and find the comments there are not enough.
Can anyone tell me where can I find reference about this
topic? Another question, can this data type be used on
Non-windows platform, for example, Linux?
Thanks in advance,
George
PaulWendt
April 22nd, 2003, 11:12 AM
Like I have told you repeatedly, do a search through your
compiler's header files to see how something is #define'd or
typedef'ed.
Yves M
April 22nd, 2003, 12:00 PM
Paul, you are being a bit unfair here ;)
The thing is that _int64 is a built-in type for VC++. When you use gcc, it's typedefed according to the platform you use.
galathaea
April 22nd, 2003, 01:17 PM
In addition to the previous posts, I will just add that it is not a standard c++ type and is used by some compilers as a dialect extension. Other compilers use long long for this, and it is possible that in some dialects long long is a different size. Some compilers use both long long and _int64, sometimes interchangeably. Because it is not standard, it is not considered portable, but there has been talk of including some type with either of the names above in the next c++ standard revision...
PaulWendt
April 22nd, 2003, 02:23 PM
Originally posted by Yves M
Paul, you are being a bit unfair here ;)
The thing is that _int64 is a built-in type for VC++. When you use gcc, it's typedefed according to the platform you use.
I don't think that I am. This guy has a history of not doing any
work to find out the answers to questions. Some others have
exhibited some emotion at his incessant questions, but maybe I
should be more political about it.
Whatever, I'm not going to argue about it; my quarrel is not with
you, good sir knight.
--Paul
George2
April 22nd, 2003, 09:39 PM
Thanks, galathaea buddy!
George
Originally posted by galathaea
In addition to the previous posts, I will just add that it is not a standard c++ type and is used by some compilers as a dialect extension. Other compilers use long long for this, and it is possible that in some dialects long long is a different size. Some compilers use both long long and _int64, sometimes interchangeably. Because it is not standard, it is not considered portable, but there has been talk of including some type with either of the names above in the next c++ standard revision...
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.