<div class="gmail_quote">On 8 March 2012 00:21, Jonathan M Davis <span dir="ltr"><<a href="mailto:jmdavisProg@gmx.com">jmdavisProg@gmx.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5">On Wednesday, March 07, 2012 23:07:11 Mars wrote:<br>
> On Friday, 2 March 2012 at 11:53:56 UTC, Manu wrote:<br>
> > Personally, I just want to be able to link like a normal<br>
> > windows developer.<br>
> > My code is C/C++, built with VC, and I want to link my D app<br>
> > against those<br>
> > libs using the VC linker, and debug with Visual Studio. This is<br>
> > the<br>
> > workflow I think the vast majority of Windows devs will expect,<br>
> > and it<br>
> > sounds simple enough. This is the only thing standing between<br>
> > me using D<br>
> > for any major projects, and just experimenting with the<br>
> > language for<br>
> > evaluation, or just academic interest.<br>
> > 64bit is far less important to me personally, VisualC linker<br>
> > compatibility<br>
> > is the big one. I just want to link against my C code without<br>
> > jumping<br>
> > through lots of hoops.<br>
><br>
> That's exactly my problem... and although I love D, these hurdles<br>
> made me take a step back, to C++, while I wait for this to<br>
> change, so I can finally use D efficiently.<br>
><br>
> I'm sure this isn't a trivial task, but the problematic isn't new<br>
> after all. Why hasn't it been addressed yet? In my eyes this<br>
> should be a top priority, to make it easier for new users to get<br>
> into D. Till this poll I actually believed the problem was that D<br>
> isn't used much by Windows users.<br>
<br>
</div></div>I don' think that Walter really views it as much of a problem - or if he does,<br>
he didn't used to. Remember that he's used to an environment where he doesn't<br>
use Visual Studio or Microsoft's C++ compiler. And his customers use dmc just<br>
like he does (since they're his customers), so many of the people that he<br>
interacts with in the C/C++ world are not necessarily particularly Microsoft-<br>
centric on Windows.<br>
<br>
Add to that the enormous task that it is to actually make dmd work with COFF<br>
or 64-bit or anything of the sort on Windows, and it's no wonder that it<br>
hasn't happened yet.<br>
<br>
To be fair, there are plenty of other things that have needed to be done, and<br>
what we have for Windows does work, even if it's suboptimal. So, it's not all<br>
that unreasonable that the issue would be put off as long as it has been. And<br>
Walter _has_ been slowing working on porting optlink to C (the fact that it's<br>
written in assembly makes it really fast but hard to maintain and change),<br>
which would make it possible to then start porting stuff to 64-bit and<br>
considering COFF and stuff like that.<br></blockquote><div><br></div><div>Is it possible to just fix the compiler to output COFF objects *without* touching optlink at all?</div><div>I'm not interested in using optlink with this feature, I intend to link with Visual Studio, that's the whole point. So ignoring optlink, that's a major slice of work taken out of the equation...</div>
<div>Maybe it would be nice to support optlink in future, but it seems the priority is backwards.</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I expect that we'll get there eventually, but there's so much to do, and this<br>
particular issue is not only hard, but there's pretty much only one person<br>
currently qualified to do it, so it hasn't happened yet.<br>
<span class="HOEnZb"><font color="#888888"><br>
- Jonathan M Davis<br>
</font></span></blockquote></div><br>