delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/01/09/09:40:24

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Wed, 9 Jan 2002 17:37:07 +0300
From: egor duda <deo AT logos-m DOT ru>
X-Mailer: The Bat! (v1.53 RC/4)
Reply-To: egor duda <cygwin AT cygwin DOT com>
Organization: deo
X-Priority: 3 (Normal)
Message-ID: <97152480064.20020109173707@logos-m.ru>
To: Jean le Roux <jean AT infosat DOT net>
CC: egor duda <cygwin AT cygwin DOT com>
Subject: Re: w32api header problems
In-Reply-To: <20020109160709.A21489@infosat.net>
References: <20020109115348 DOT A14411 AT infosat DOT net>
<67136319166 DOT 20020109130747 AT logos-m DOT ru> <20020109133833 DOT A20443 AT infosat DOT net>
<66149490876 DOT 20020109164718 AT logos-m DOT ru> <20020109160709 DOT A21489 AT infosat DOT net>
MIME-Version: 1.0

Hi!

Wednesday, 09 January, 2002 Jean le Roux jean AT infosat DOT net wrote:

JlR> On Wed, Jan 09, 2002 at 04:47:18PM +0300, egor duda wrote:
>> JlR> I've done this but <windows.h> seems to leave my code in a tangle :)
>> JlR> I suddenly have parse errors in my own header files, on normal
>> JlR> function declerations. I can only deduce that windows.h is leaving an
>> JlR> open ifdef or has unterminated strings or something silly.
>> 
>> it's easy to find out what the reason is. gcc has a very useful option
>> '--save-temps'. it instructs preprocessor, compiler and assembler to
>> leave their temporary files in place, so if you compiling, say, zzz.c,
>> you'll get zzz.i (output of preprocessor), zzz.s (assembly source --
>> output of compiler) and zzz.o (compiled binary object). You want to
>> look into zzz.i it shows what your source file turns into, and it's
>> almost always easy to see why.

JlR> Fair enough.. but how do i turn it on with autotools.. configure does
JlR> not seem to support such a flag.

1st way: redirect make output to file, cut'n'paste the failed
command. then add the option and run resulting command.
2nd way: edit Makefile to add this option in the appropriate place
(usually, CFLAGS or CXXFLAGS) then run 'make zzz.o'

Egor.            mailto:deo AT logos-m DOT ru ICQ 5165414 FidoNet 2:5020/496.19


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019