I want to use LEAP Motion in D.  

Therefore It doesn't have C library and It has only C++ library.  

I tried SWIG 2.0.9 below command.

```
swig -c++ -d -d2 leap.i 

```

This command output **Leap.d, Leap\_im.d, Leap\_wrap.cxx, Leap\_wrap.h.**
However, I don't know how to use to wrapper in D and I can't find how to use the wrapper.  

Link error displays to use it intact.  

How use these wrapper in D2?  

And can I use without Leap.cpp (source of Leap.dll)?

Update:
-------

Thanks two answers. and sorry for reply late because of busy.  

Say first conclusion I could build Leap sample code on Win64 by following the steps below.  

1. **Output wrappers by above command.**
2. **Create x64 DLL with VC2010 from Leap\_wrap.cxx, Leap\_wrap.h, and import Leap.lib(x64).**
3. **Compile Leap.d and Leap\_im.d with dmd -c.**
4. **Build LeapTest.d with Leap.obj and Leap\_im.obj**

all command is below.

```
swig -c++ -d -d2 leap.i
dmd -c Leap.d Leap_im.d -m64
dmd LeapTest.d Leap.obj Leap_im.obj -m64
execute LeapTest.exe (require x64 Leap.dll and Leap_wrap.dll)

```

I could run Leap Program.  

But program crach onFrame event callback.  

I'll try again on x86 and investigate the causes.