This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
unsigned long long int with os-x
- From: Nicholas Strauss <nicks at carriage dot chesco dot com>
- To: gcc-help at gcc dot gnu dot org
- Cc: Nicholas Strauss <ncs at alum dot mit dot edu>
- Date: Sun, 13 Oct 2002 10:54:05 -0400
- Subject: unsigned long long int with os-x
Hi,
I'm trying to use gcc in darwin os-x. I've written the following piece of code:
int main(int argc, char *argv[])
{
unsigned long long int u;
u = 1<<63;
printf("u: %ld uu: %ld\n", u, u-1);
printf("maxint %ld\n", INT64_MAX);
}
What compiler/linker options should I use with gcc?
What format should I use with printf?
Nick
infinity software