<div class="gmail_quote">On 18 June 2012 11:38, Kagamin <span dir="ltr"><<a href="mailto:spam@here.lot" target="_blank">spam@here.lot</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Sunday, 17 June 2012 at 10:49:30 UTC, Gor Gyolchanyan wrote:<br>
</div><div class="im"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Thanks for the reply.<br>
This is so ridiculous and frustrating.<br>
</blockquote>
<br></div>
Use GDC?<br>
</blockquote></div><br><div>I use GDC now. It produces COFF objects, and is technically capable of linking against MSVC code, except the 2 compilers expect different runtimes.</div><div>You have to be REALLY careful with your GDC code to make sure it doesn't produce implicit calls into the GNU runtime, otherwise you'll get link conflicts.</div>
<div>You can afford some really standard runtime calls that are also present in the mscrt, and it'll just link to those instead of the gnu ones.</div><div><br></div><div>I have successfully build small scale projects with GDC linking against MSVC code, but there's a long list of problems and gotchas...</div>
<div>My current approach is to build D code into DLL's and dynamically link against my MSVC code, or vice-versa.</div><div><br></div><div>Hopefully the new 64bit dmd comes soon :)</div>