www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Use libusb in windows system

reply "Vitaly" <defiks.by gmail.ru> writes:
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.
Mar 31 2015
parent Rikki Cattermole <alphaglosined gmail.com> writes:
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.
Mar 31 2015