public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* unsigned long long int with os-x
@ 2002-10-13  7:59 Nicholas Strauss
  2002-10-13 17:06 ` Segher Boessenkool
  0 siblings, 1 reply; 3+ messages in thread
From: Nicholas Strauss @ 2002-10-13  7:59 UTC (permalink / raw)
  To: gcc-help; +Cc: Nicholas Strauss

[-- Attachment #1: Type: text/plain, Size: 361 bytes --]

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

[-- Attachment #2: Type: text/enriched, Size: 461 bytes --]

Hi,


I'm trying to use gcc in darwin os-x. I've written the following piece
of code:

<fontfamily><param>Times New Roman</param><bigger><bigger>

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</bigger></bigger></fontfamily>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-10-14  0:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-13  7:59 unsigned long long int with os-x Nicholas Strauss
2002-10-13 17:06 ` Segher Boessenkool
2002-10-13 17:11   ` Nicholas Strauss

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).