On Wed, Sep 8, 2010 at 4:13 AM, Xiaofan Chen <[email protected]> wrote: > On Tue, Sep 7, 2010 at 11:13 PM, Ozkan Sezer <[email protected]> wrote: >> On Tue, Sep 7, 2010 at 6:02 PM, Xiaofan Chen <[email protected]> wrote: >>>> I am not using the ddk from mingw.org. I am using the TDM64 version. >>>> I believe the ddk inside TDM64 is from the svn version. >>> >> >> The order here is wrong. It should be >> >> #include <ddk/ntddk.h> >> #include <usb100.h> >> #include <usbdi.h> >> >> With this ntdef.h will be picked properly and winnt.h won't ever >> get in the way. > > Thanks. I will try that. > >> Since you specifically use ddk/ please find a way of adding >> ddk to the include path. (maybe making a copy of the ddk directory >> under c:\mingw64 or wherever the toolchain is, and then adding >> a proper -I to the gcc command.) >> > > Hmm, I hope the TDM64 packages has already that sort out. > As I mentioned before, the main problem is that there is no > official packages with the ddk headers integrated. And it > seems to me that TDM64 is the only one right now. > > I also tried to add svn ddk headers inside the automatic > build download from the Sourceforge download, the results > were similar. I will try again.
See http://mingw-w64.svn.sourceforge.net/viewvc/mingw-w64/experimental/ddk_test/ I'd say take http://mingw-w64.svn.sourceforge.net/viewvc/mingw-w64/experimental/ddk_test/include/ddk/ from there and put it into its exclusive directory like c:\ddk or c:\mingw64\ddk or similar, and remove the one came with tdm64. And add this to your include path. > > > -- > Xiaofan > -- Ozkan ------------------------------------------------------------------------------ This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd _______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
