From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27427 invoked by alias); 13 Oct 2002 14:59:33 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 27419 invoked from network); 13 Oct 2002 14:59:32 -0000 Received: from unknown (HELO carriage.chesco.com) (209.195.192.2) by sources.redhat.com with SMTP; 13 Oct 2002 14:59:32 -0000 Received: from carriage.chesco.com (mxfcl8x5.chesco.com [209.195.248.133]) by carriage.chesco.com (8.11.6/8.10.1) with ESMTP id g9DExTl09657; Sun, 13 Oct 2002 10:59:30 -0400 (EDT) Date: Sun, 13 Oct 2002 07:59:00 -0000 Subject: unsigned long long int with os-x Content-Type: multipart/alternative; boundary=Apple-Mail-2-379070342 Mime-Version: 1.0 (Apple Message framework v546) Cc: Nicholas Strauss To: gcc-help@gcc.gnu.org From: Nicholas Strauss Message-Id: <9E647882-DEBB-11D6-BFB0-000393AC01F6@carriage.chesco.com> X-SW-Source: 2002-10/txt/msg00146.txt.bz2 --Apple-Mail-2-379070342 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed Content-length: 361 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 --Apple-Mail-2-379070342 Content-Transfer-Encoding: 7bit Content-Type: text/enriched; charset=US-ASCII Content-length: 461 Hi, I'm trying to use gcc in darwin os-x. I've written the following piece of code: Times New Roman 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 --Apple-Mail-2-379070342--