Bill Baxter Wrote: > On Wed, Feb 11, 2009 at 6:59 AM, Eldar Insafutdinov > <[email protected]> wrote: > > ideage Wrote: > > > >> Great stuff! > >> > >> Expect window's version! > >> > >> > > So after some time trying to build qtd windows packages I realized that > > there are huge issues. I tried first dmd and since I have to link D part of > > wrapper with C++ object files produced by mingw - it didnt work and I was > > told that it's because mingw and dmd have different object file formats. So > > 2 options left are gdc(which is kinda outdated) and ldc(which doesn't > > support exception handling). So the situation is suspended, although I am > > trying to build it with ldc now. > > > My usual approach is to use mingw to build a dll out of the needed > functionality. If you can make the C++ part a DLL then a D program > can use it just fine. > > --bb
Thanks, but could you please clarify something for me: as well as D part, C++ part is calling extern "C" functions defined in D part of the binding. will this work with dll? And also currently it doesn't use dynamic loading - it's just plain extern (C) function definitions on both sides, is this an issue?
