Use libusb in windows system

Rikki Cattermole via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Mar 31 06:59:40 PDT 2015


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.


More information about the Digitalmars-d-learn mailing list