Mailing-List: contact cygwin-apps-help AT sourceware DOT cygnus DOT com; run by ezmlm Sender: cygwin-apps-owner AT sourceware DOT cygnus DOT com List-Subscribe: List-Archive: List-Post: List-Help: , Delivered-To: mailing list cygwin-apps AT sources DOT redhat DOT com X-Apparently-From: Message-ID: <3A84194A.E4CF6D53@yahoo.com> Date: Fri, 09 Feb 2001 11:22:34 -0500 From: Earnie Boyd Reply-To: cygwin-apps AT sources DOT redhat DOT com X-Mailer: Mozilla 4.76 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 To: nhv AT cape DOT com CC: "'Jason Tishler'" , cygwin-apps AT sources DOT redhat DOT com Subject: Re: Cygwin Problem References: <000401c092b1$80db5b60$a300a8c0 AT nhv> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Norman Vine wrote: > > Jason Tishler writes: > > > >On Fri, Feb 09, 2001 at 10:06:05AM -0500, Norman Vine wrote: > >> It seems as if the newest stuff does not -D_WIN32 like it used to. > >> > >> Chris warned that this would cause lot's of things to break. > >> > >> I had to add a -mwin32 to all the gcc flags to get Python to compile. > >> > >> I am not sure that this is the best way because -mwin32 may do more > >> then we want. -mwin32 is also only in the latest gcc ( 2.95.2.7 ) > >> > >> Any suggestions > > > >Unfortunately, I believe that the right solution is to do as Chuck did > >in the following (see the first paragraph): > > > > http://sources.redhat.com/ml/cygwin/2001-02/msg00244.html > > > > I do not think that this is the same problem > Hopefully this dumb example will illustrate my point better > > Cheers > > Norman Vine > > /* jnk.c -- -mwin32 switch test > $ gcc -DWIN32 jnk.c > jnk.c:1: windows.h: No such file or directory > > $ gcc -mwindows jnk.c > jnk.c:1: windows.h: No such file or directory > > $ gcc -mwin32 jnk.c > $ a > A dumb test > */ > > #include > > int main(int argc, char **argv) > { > printf("A dumb test\n"); > return 0; > } I haven't tried building python recently so I don't know how this relates but with gcc-2.95.2-7 you must either -mwin32 or -I/usr/include/w32api for GCC to find the windows.h file. Earnie. _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com