On Fri, Sep 10, 2010 at 1:34 PM, Xiaofan Chen <[email protected]> wrote: > On Fri, Sep 10, 2010 at 6:31 PM, Ozkan Sezer <[email protected]> wrote: > >> Speaking of linkage to usbd.sys, where did you get libusbd.a for linking >> to it? AFAICS, we don't provide it (shame on us.) Your libusb0.sys looks >> for a _USBD_CreateConfigurationRequestEx, notice the leading underscore, >> so can this be the problem? >> > > I think you are onto something. I was suspecting that actually. > > In the Makefile, I will try again with removing the --add-underscore. >
Ouch, no! I think that's your problem. Yes, can you please remove that and try with the attached import library? > .PHONY: driver > driver: DRIVER_CFLAGS = $(CFLAGS) -DLOG_APPNAME=\"$(DLL_TARGET)-sys\" > -DTARGETTYPE=DRIVER > driver: $(DRIVER_TARGET) > > $(DRIVER_TARGET): libusbd.a $(DRIVER_OBJECTS) > $(CC) -o $@ $(DRIVER_OBJECTS) $(DLL_TARGET)_drv.def $(DRIVER_LDFLAGS) > > libusbd.a: > $(DLLTOOL) --dllname usbd.sys --add-underscore --def > ./src/driver/usbd.def --output-lib libusbd.a > > %.o: %.c libusb_driver.h driver_api.h error.h > $(CC) -c $< -o $@ $(DRIVER_CFLAGS) $(CPPFLAGS) $(INCLUDES) > > %.o: %.rc > $(WINDRES) $(CPPFLAGS) $(WINDRES_FLAGS) $< -o $@ > > > > -- > Xiaofan >
usbd.def
Description: Binary data
libusbd.a
Description: Binary data
------------------------------------------------------------------------------ Automate Storage Tiering Simply Optimize IT performance and efficiency through flexible, powerful, automated storage tiering capabilities. View this brief to learn how you can reduce costs and improve performance. http://p.sf.net/sfu/dell-sfdev2dev
_______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
