X-Spam-Check-By: sourceware.org
From: "Dave Korn" <dave.korn@artimi.com>
To: <cygwin@cygwin.com>
Subject: RE: Endianess not declared
Date: Sun, 14 Jan 2007 15:33:36 -0000
Message-ID: <012301c737f1$5bbf05c0$a501a8c0@CAM.ARTIMI.COM>
MIME-Version: 1.0
Content-Type: text/plain; 	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Office Outlook 11
In-Reply-To: <eodh10$ev1$1@sea.gmane.org>
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On 14 January 2007 15:08, Kovarththanan Rajaratnam wrote:

> Hello
> 
> I've just given Sparse [1] a try on Cygwin and compiling it went without
> any hassle. However, trying it on a very simple example (which includes
> stdio.h) seems to fail in 'ieeefp.h' due to 'Endianess not declared!!'

  That's odd.  I'm guessing 'sparse' is some kind of source code parser?  For
whatever reason, the version of ieeefp.h in my cygwin installation doesn't
include any related #warning or #error.  Is sparse somehow generating that
itself?
 
> I assume this is due to some #define's not being set properly. In order
> to track down these needed #defines I used the GCC specification info
> (-dumpspecs) and I was able to find these defines: -D__CYGWIN32__
> -D__CYGWIN__ -Dunix -D__unix__ -D__unix. However that still doesn't seem
> enough. What else am I missing?

  Not all built-in #defines come from the specs.  For the canonical list of
built-in definitions, which vary slightly between C and C++, use:

gcc -x c -E -dM - < /dev/null

g++ -x c++ -E -dM - < /dev/null



    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

