delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/08/19/14:40:00

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
From: Sam Steingold <sds AT gnu DOT org>
To: cygwin AT cygwin DOT com
Subject: Re: i686-w64-mingw32-gcc & ntifs.h
In-Reply-To: <20110819120044.GA2506@calimero.vinschen.de> (Corinna Vinschen's message of "Fri, 19 Aug 2011 14:00:44 +0200")
References: <svliuq67y2 DOT fsf AT smsv2-L DOT wtc DOT algo> <4E4D9487 DOT 4080103 AT users DOT sourceforge DOT net> <sv39gy47h5 DOT fsf AT smsv2-L DOT wtc DOT algo> <4E4E38B9 DOT 9010803 AT users DOT sourceforge DOT net> <20110819120044 DOT GA2506 AT calimero DOT vinschen DOT de>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)
Mail-Copies-To: never
Reply-To: sds AT gnu DOT org
X-Disclaimer: You should not expect anyone to agree with me.
Mail-Followup-To: cygwin AT cygwin DOT com
Date: Fri, 19 Aug 2011 14:39:34 -0400
Message-ID: <svr54h2ql5.fsf@smsv2-L.wtc.algo>
MIME-Version: 1.0
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

> * Corinna Vinschen <pbevaan-pltjva AT pltjva DOT pbz> [2011-08-19 14:00:44 +0200]:
>
> On Aug 19 18:19, JonY wrote:
>> On 8/19/2011 07:37, Sam Steingold wrote:
>> >> * JonY <wba_l AT hfref DOT fbheprsbetr DOT 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=/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?

-- 
Sam Steingold (http://sds.podval.org/) on CentOS release 5.6 (Final) X 11.0.60900031
http://openvotingconsortium.org http://thereligionofpeace.com
http://pmw.org.il http://palestinefacts.org http://memri.org http://dhimmi.com
Heck is a place for people who don't believe in gosh.

--
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019