On Tue, Sep 7, 2010 at 11:13 PM, Ozkan Sezer <seze...@gmail.com> wrote: > On Tue, Sep 7, 2010 at 6:02 PM, Xiaofan Chen <xiaof...@gmail.com> 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. -- Xiaofan ------------------------------------------------------------------------------ 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 Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public