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.
.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
------------------------------------------------------------------------------
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