i686-w64-mingw32-gcc & ntifs.h

JonY jon_y@users.sourceforge.net
Thu Aug 18 22:39:00 GMT 2011


On 8/18/2011 23:44, Sam Steingold wrote:
> Hi,
> I cannot
> #include <ddk/ntifs.h>
> because /usr/i686-w64-mingw32/sys-root/mingw/include/ddk/ntifs.h contains
> #include <ntddk.h>
> and <ntddk.h> actually lives in ddk, i.e., it should be
> #include <ddk/ntddk.h>
> after I aplly these two patches:
> --- c:/gnu/cygwin/usr/i686-w64-mingw32/sys-root/mingw/include/ddk/ntddk.h.old	2011-08-10 09:06:18.001000000 -0400
> +++ c:/gnu/cygwin/usr/i686-w64-mingw32/sys-root/mingw/include/ddk/ntddk.h	2011-08-18 11:42:13.272375000 -0400
> @@ -35,11 +35,11 @@
>  #define NT_INCLUDED
>  #define _CTYPE_DISABLE_MACROS
>  
> -#include <wdm.h>
> +#include <ddk/wdm.h>
>  #include <excpt.h>
>  #include <ntdef.h>
>  #include <ntstatus.h>
> -#include <mce.h>
> +#include <ddk/mce.h>
>  #include <bugcodes.h>
>  #include <ntiologc.h>
>  
> 
> Diff finished.  Thu Aug 18 11:42:16 2011
> --- c:/gnu/cygwin/usr/i686-w64-mingw32/sys-root/mingw/include/ddk/ntifs.h.old	2011-08-10 09:06:19.001000000 -0400
> +++ c:/gnu/cygwin/usr/i686-w64-mingw32/sys-root/mingw/include/ddk/ntifs.h	2011-08-18 11:33:42.429125000 -0400
> @@ -31,7 +31,7 @@ extern "C" {
>  #endif
>  
>  /* Dependencies */
> -#include <ntddk.h>
> +#include <ddk/ntddk.h>
>  #include <excpt.h>
>  #include <ntdef.h>
>  #include <ntnls.h>
> 
> Diff finished.  Thu Aug 18 11:36:04 2011

Adding to mingw-w64-public list.

You are supposed to use -I to add the ddk path to gcc.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 196 bytes
Desc: OpenPGP digital signature
URL: <http://cygwin.com/pipermail/cygwin/attachments/20110818/eb7bc694/attachment.sig>


More information about the Cygwin mailing list