Re: QtD 0.1 is out!

2009-02-10 Thread Denis Koroskin

On Wed, 11 Feb 2009 00:59:28 +0300, Eldar Insafutdinov 
 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.


You can try building Qt with DMC. It works quite will in pair with DMD on 
Windows.



Re: QtD 0.1 is out!

2009-02-10 Thread Eldar Insafutdinov
Bill Baxter Wrote:

> On Wed, Feb 11, 2009 at 6:59 AM, Eldar Insafutdinov
>  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?


Re: QtD 0.1 is out!

2009-02-10 Thread Bill Baxter
On Wed, Feb 11, 2009 at 6:59 AM, Eldar Insafutdinov
 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


Re: QtD 0.1 is out!

2009-02-10 Thread Eldar Insafutdinov
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.