This is the mail archive of the
mailing list for the Cygwin project.
RE: Endianess not declared
- From: "Dave Korn" <dave dot korn at artimi dot com>
- To: <cygwin at cygwin dot com>
- Date: Sun, 14 Jan 2007 15:33:36 -0000
- Subject: RE: Endianess not declared
On 14 January 2007 15:08, Kovarththanan Rajaratnam wrote:
> I've just given Sparse  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
> 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
Can't think of a witty .sigline today....
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html