From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12095 invoked by alias); 23 Aug 2004 13:43:20 -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 12076 invoked from network); 23 Aug 2004 13:43:19 -0000 Received: from unknown (HELO mx5.informatik.uni-tuebingen.de) (134.2.12.32) by sourceware.org with SMTP; 23 Aug 2004 13:43:19 -0000 Received: from localhost (loopback [127.0.0.1]) by mx5.informatik.uni-tuebingen.de (Postfix) with ESMTP id 57558115; Mon, 23 Aug 2004 15:43:18 +0200 (MST) Received: from mx5.informatik.uni-tuebingen.de ([127.0.0.1]) by localhost (mx5 [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 34306-05; Mon, 23 Aug 2004 15:43:16 +0200 (DFT) Received: from juist (semeai.Informatik.Uni-Tuebingen.De [134.2.15.66]) by mx5.informatik.uni-tuebingen.de (Postfix) with ESMTP id 66F10112; Mon, 23 Aug 2004 15:43:16 +0200 (MST) Received: from falk by juist with local (Exim 4.34) id 1BzF6Q-0007RJ-3E; Mon, 23 Aug 2004 15:43:14 +0200 To: "Betu, Satyanarayana" Cc: Subject: Re: sizeof(bool) References: From: Falk Hueffner Date: Tue, 24 Aug 2004 01:41:00 -0000 In-Reply-To: (Satyanarayana Betu's message of "Mon, 23 Aug 2004 14:39:56 +0100") Message-ID: <87brh2ynpq.fsf@informatik.uni-tuebingen.de> User-Agent: Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.5 (cabbage, linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new (McAfee AntiVirus) at informatik.uni-tuebingen.de X-SW-Source: 2004-08/txt/msg00215.txt.bz2 "Betu, Satyanarayana" writes: > we are using g++ 2.95.3 .Currently we are facing problems with data > type bool.Programs compiling with this compiler are taking bool size > as 4 because of which we are not able to prote this application to > another machines.Do u have any patch for this problem? The C++ standard allows bool to have size 4, so there is no problem in g++; the problem is in your application. However, you might consider upgrading to a current version of g++, where the size of bool is 1 consistently over all architectures. -- Falk