X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-2.5 required=5.0	tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW
X-Spam-Check-By: sourceware.org
Message-ID: <4E4F08D3.3060007@users.sourceforge.net>
Date: Sat, 20 Aug 2011 09:07:31 +0800
From: JonY <jon_y@users.sourceforge.net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.12) Gecko/20080213 Thunderbird/2.0.0.12 Mnenhy/0.7.5.0
MIME-Version: 1.0
To: cygwin@cygwin.com,
        "mingw-w64-public@lists.sourceforge.net" <mingw-w64-public@lists.sourceforge.net>
Subject: Re: i686-w64-mingw32-gcc & ntifs.h
References: <svliuq67y2.fsf@smsv2-L.wtc.algo>	<4E4D9487.4080103@users.sourceforge.net>	<sv39gy47h5.fsf@smsv2-L.wtc.algo>	<4E4E38B9.9010803@users.sourceforge.net>	<20110819120044.GA2506@calimero.vinschen.de> <svr54h2ql5.fsf@smsv2-L.wtc.algo>
In-Reply-To: <svr54h2ql5.fsf@smsv2-L.wtc.algo>
Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig21ABA13294DF98D457DB173A"
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

--------------enig21ABA13294DF98D457DB173A
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On 8/20/2011 02:39, Sam Steingold wrote:
>> * Corinna Vinschen <pbevaan-pltjva@pltjva.pbz> [2011-08-19 14:00:44 +020=
0]:
>>
>> On Aug 19 18:19, JonY wrote:
>>> On 8/19/2011 07:37, Sam Steingold wrote:
>>>>> * JonY <wba_l@hfref.fbheprsbetr.arg> [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=3D/mingw/include/ddk
>=20
> cool trick, thanks.
> now I am still getting those zillions of errors like
>=20
> /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: prev=
ious definition of `WinRestrictedCodeSid' was here
>=20
> what about those?
>=20

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?


--------------enig21ABA13294DF98D457DB173A
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (MingW32)

iEYEARECAAYFAk5PCNcACgkQp56AKe10wHeRgQCgizpGfs+ApqWC8lJj7Gms1cAC
IigAoIj7R849C5FZy3N4U6zyM9Lz5pD2
=FoRg
-----END PGP SIGNATURE-----

--------------enig21ABA13294DF98D457DB173A--
