X-Spam-Check-By: sourceware.org From: "Dave Korn" To: 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: Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT 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/