|
From: Xiaofan C. <xia...@gm...> - 2011-06-30 02:54:22
|
On Thu, Jun 30, 2011 at 10:46 AM, Xiaofan Chen <xia...@gm...> wrote: > On Wed, Jun 29, 2011 at 2:00 PM, Xiaofan Chen <xia...@gm...> wrote: >> I am trying to build libusb-win32 device driver under MinGW but I have >> one problem with this undefined reference to `ObQueryNameString'. >> How should I fix this issue? >> >> It should be in libntoskrnl.a but somehow this does not work. >> http://msdn.microsoft.com/en-us/library/ff550990%28v=vs.85%29.aspx > > It seems that ObQueryNameString is commented out from the > w32api source. Just wondering why so many things get commented out. > http://cygwin.com/cgi-bin/cvsweb.cgi/src/winsup/w32api/lib/ddk/ntoskrnl.def?rev=1.12&content-type=text/x-cvsweb-markup&cvsroot=src On the other hand, the header file includes this. http://cygwin.com/cgi-bin/cvsweb.cgi/src/winsup/w32api/include/ddk/ntifs.h?rev=1.16&content-type=text/x-cvsweb-markup&cvsroot=src -- Xiaofan |