This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: i686-w64-mingw32-gcc & ntifs.h


> * Corinna Vinschen <pbevaan-pltjva@pltjva.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@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=/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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]