This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]