X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org MIME-Version: 1.0 In-Reply-To: <4E4F08D3.3060007@users.sourceforge.net> References: <4E4D9487 DOT 4080103 AT users DOT sourceforge DOT net> <4E4E38B9 DOT 9010803 AT users DOT sourceforge DOT net> <20110819120044 DOT GA2506 AT calimero DOT vinschen DOT de> <4E4F08D3 DOT 3060007 AT users DOT sourceforge DOT net> Date: Sat, 20 Aug 2011 09:31:47 +0200 Message-ID: Subject: Re: [Mingw-w64-public] i686-w64-mingw32-gcc & ntifs.h From: Kai Tietz To: mingw-w64-public AT lists DOT sourceforge DOT net Cc: cygwin AT cygwin DOT com Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes 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 2011/8/20 JonY : > On 8/20/2011 02:39, Sam Steingold wrote: >>> * Corinna Vinschen [2011-08-19 14:00:44 +0200]: >>> >>> On Aug 19 18:19, JonY wrote: >>>> On 8/19/2011 07:37, Sam Steingold wrote: >>>>>> * JonY [2011-08-19 06:39:03 +0800]: >>>>>> >>>>>> You are supposed to use -I to add the ddk path to gcc. >>>>> >>>>> how? >>>>> I mean, -Iddk does not work because I do not have ddk directory in my >>>>> build directory. >>>>> how do I ask i686-w64-mingw32-gcc to print >>>>> /usr/i686-w64-mingw32/sys-root/mingw/include/ ?? >>>>> thanks! >>>> >>>> Try i686-w64-mingw32-gcc -print-sysroot and append /mingw/include/ddk. >>> >>> Or just use -I=/mingw/include/ddk >> >> cool trick, thanks. >> now I am still getting those zillions of errors like >> >> /usr/i686-w64-mingw32/sys-root/mingw/include/ddk/ntddk.h:2922:26: error: redeclaration of enumerator `WinRestrictedCodeSid' >> /usr/i686-w64-mingw32/sys-root/mingw/include/winnt.h:2681:413: note: previous definition of `WinRestrictedCodeSid' was here >> >> what about those? >> > > hi, > > afaik, you aren't supposed to use use winnt.h and ntddk code together, > but I'm not sure this is accidental, I'll try to the devs and see if > they have something. > > Kai, what do you think? Yes, winnt.h is platform header part. For DDK you should use AFAIR ntdef.h and/or wdm.h instead. Regards, Kai -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple