Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 Message-ID: <20030609020730.11538.qmail@verizonmail.com> Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: 7bit MIME-Version: 1.0 From: "Lionel Zhou" To: cygwin AT cygwin DOT com Date: Sun, 08 Jun 2003 21:07:30 -0500 Subject: Re: w32api/windef.h X-Originating-Ip: 219.139.2.39 X-Originating-Server: ws3-3.us4.outblaze.com ----- Original Message ----- From: Christopher Faylor Date: Sun, 8 Jun 2003 11:21:43 -0400 To: cygwin AT cygwin DOT com Subject: Re: w32api/windef.h > On Sun, Jun 08, 2003 at 07:19:30AM -0500, Lionel Zhou wrote: > >In file included from utils.c:4: > >/usr/include/w32api/windef.h:273: parse error before "void" > > > >has anyone successfully used the windef.h header and could you tell me > >how to compile program like this? > > > >my windef.h is attached here. > > #include > > Not windef.h. That might help. > > cgf thank you christopher and elfyn, i tried your advice but it doesn't solve the problem. grep windef /usr/local/w32api/windows.h #include so that windows.h is just a superset of header definitions which includes windef.h program compile with the same error: In file included from windows.h:48: from utils.c:4: /usr/include/w32api/windef.h:273: parse error before "void" grep void /usr/include/w32api/windef.h #define NULL ((void*)0) typedef CONST void *PCVOID,*LPCVOID; typedef void *HGDIOBJ; i also tried the -mwin32 compile flag which lead to more errors because of conflicting definitions. the program is wrote for linux and is being ported to windows. this is about the only function that uses win32 api in this program. lionel -- _______________________________________________ Get your free Verizonmail at www.verizonmail.com -- 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/