On Fri, Sep 10, 2010 at 7:24 AM, Xiaofan Chen <[email protected]> wrote:
> On Fri, Sep 10, 2010 at 12:16 PM, Xiaofan Chen <[email protected]> wrote:
>> Now it is getting very close. Hopefully you guys have some idea
>> to fix this last problem. Thanks a lot.
>>
>> mc...@mcuee-pc-win7 /d/work/mingw-w64/libusb-win32-src-1.2.1.20
>> $ make driver -i
>> gcc -c ./src/error.c -o error.o -O2 -Wall -mno-cygwin -DWINVER=0x500  
>> -DLOG_APPN
>> AME=\"libusb0-sys\" -DTARGETTYPE=DRIVER  -I./src -I./src/driver -I./src/ddk 
>> -I.
>>
>> In file included from ./src/ddk/ntddk.h:38:0,
>>                 from ./src/error.c:28:
>> ./src/ddk/wdm.h:6669:36: warning: declaration does not declare anything
>> In file included from ./src/error.c:31:0:
>> ./src/driver/usbdlib_gcc.h:206:5: error: expected '=', ',', ';', 'asm' or 
>> '__att
>> ribute__' before 'USBD_Debug_LogEntry'
>> ./src/driver/usbdlib_gcc.h:215:5: error: expected '=', ',', ';', 'asm' or 
>> '__att
>> ribute__' before 'USBD_GetUSBDIVersion'
>> ./src/driver/usbdlib_gcc.h:222:5: error: expected '=', ',', ';', 'asm' or 
>> '__att
>> ribute__' before 'USBD_ParseConfigurationDescriptor'
>> ./src/driver/usbdlib_gcc.h:230:5: error: expected '=', ',', ';', 'asm' or 
>> '__att
>> ribute__' before 'USBD_CreateConfigurationRequest'
>> ./src/driver/usbdlib_gcc.h:237:5: error: expected '=', ',', ';', 'asm' or 
>> '__att
>> ribute__' before 'USBD_ParseDescriptors'
>> ./src/driver/usbdlib_gcc.h:246:5: error: expected '=', ',', ';', 'asm' or 
>> '__att
>> ribute__' before 'USBD_ParseConfigurationDescriptorEx'
>> ./src/driver/usbdlib_gcc.h:258:5: error: expected '=', ',', ';', 'asm' or 
>> '__att
>> ribute__' before 'USBD_CreateConfigurationRequestEx'
>> ./src/driver/usbdlib_gcc.h:265:5: error: expected '=', ',', ';', 'asm' or 
>> '__att
>> ribute__' before 'USBD_GetInterfaceLength'
>> ./src/driver/usbdlib_gcc.h:272:5: error: expected '=', ',', ';', 'asm' or 
>> '__att
>> ribute__' before 'USBD_RegisterHcFilter'
>> ./src/driver/usbdlib_gcc.h:279:5: error: expected '=', ',', ';', 'asm' or 
>> '__att
>> ribute__' before 'USBD_GetPdoRegistryParameter'
>> ./src/driver/usbdlib_gcc.h:289:5: error: expected '=', ',', ';', 'asm' or 
>> '__att
>> ribute__' before 'USBD_QueryBusTime'
>> ./src/driver/usbdlib_gcc.h:296:5: error: expected '=', ',', ';', 'asm' or 
>> '__att
>> ribute__' before 'USBD_CalculateUsbBandwidth'
>> make: [error.o] Error 1 (ignored)
>> gcc -o libusb0.sys abort_endpoint.o claim_interface.o clear_feature.o 
>> dispatch.o
>>  get_configuration.o get_descriptor.o get_interface.o get_status.o ioctl.o 
>> libus
>> b_driver.o pnp.o release_interface.o reset_device.o reset_endpoint.o 
>> set_configu
>> ration.o set_descriptor.o set_feature.o set_interface.o transfer.o 
>> vendor_reques
>> t.o power.o driver_registry.o error.o libusb_driver_rc.o  libusb0_drv.def -s 
>> -sh
>> ared -Wl,--entry,_driveren...@8 -nostartfiles -nostdlib -L. -lusbd 
>> -lntoskrnl -l
>> hal
>> gcc.exe: error.o: No such file or directory
>> make: [libusb0.sys] Error 1 (ignored)
>>
>
> For the benefit of Travis, here is the zip archive with the changes and
> the svn ddk header files. The building of the dll, filter, test and testwin
> are still working with the changes.
> http://code.google.com/p/picusb/downloads/list 
> (libusb-win32-src-1.2.1.20.zip).
>
>
> --
> Xiaofan
>

Well, src/driver/usbdlib_gcc.h at line around 23, I added :

#if !defined(DDKAPI)
#define DDKAPI NTAPI
#endif

... and error.c compiled just fine.

--
Ozkan

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

Reply via email to