March 31, 2015 Use libusb in windows system | ||||
---|---|---|---|---|
| ||||
Hi, I am new in this language. Have anybody dynamic linking libusb with dmd2 on windows. I know ther is a project libusb-d but this project is for posix system. As I understand for windows I nid to add .lib file to project, but there is a problem with COFF and OMF compatibility. Is it possible to dynamic link this library as derelict do that. May be some one solved this problem. Thank you. |
March 31, 2015 Re: Use libusb in windows system | ||||
---|---|---|---|---|
| ||||
Posted in reply to Vitaly | On 1/04/2015 2:54 a.m., Vitaly wrote:
> Hi, I am new in this language. Have anybody dynamic linking libusb with
> dmd2 on windows. I know ther is a project libusb-d but this project is
> for posix system. As I understand for windows I nid to add .lib file to
> project, but there is a problem with COFF and OMF compatibility. Is it
> possible to dynamic link this library as derelict do that. May be some
> one solved this problem. Thank you.
You'll need to compile libusb for the appropriate architecture, 32 vs 64bit as a shared library.
Then it appears to be around 2-3 sittings to fully get a set of bindings based off of Derelict up and running.
|
Copyright © 1999-2021 by the D Language Foundation