Re: G++ Fundamental Types?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Brian Budge wrote:
google gave me this:

http://www.cplusplus.com/doc/tutorial/variables/

Also, if you need certain sizes of integers, I'd recommend looking
into stdint.h (or cstdint in the new standard).

  Brian

On Thu, Jan 14, 2010 at 1:22 PM, Charles Jenkins <cjenkins@xxxxxxxxxxx> wrote:
I'm sorry to ask such a stupid question, but I am coming from a Borland C++ background, and although I have scoured http://gcc.gnu.org/onlinedocs/gcc-4.4.2/gcc/, I cannot find a list of which fundamental built-in types GCC understands. I believe keywords like  __int8 and __int16 are Borland C++ extensions, and I'd like to know what equivalents I can use in GCC. Where can I find a list of all the basic, built-in types for C++? Thanks!
The new C++ stuff available by using -std=c++0x to get the tr1 stuff from the newer draft C++ Standards, allow the use of (with N 8, 16, or 32):

intN_t, int_fastN_t, int_leastN_t, uintN_t, uint_fastN_t, uint_leastN_t

So for __int8 substitute int8_t, and for __int16 substitute int16_t

Patrick


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux