<div class="gmail_quote">On 13 May 2012 22:07, crashtua <span dir="ltr"><<a href="mailto:crashtua@gmail.com" target="_blank">crashtua@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Is it possible to build dll or lib with dmc to use it in program builded in microsoft c++ compiler?<br>
</blockquote></div><br><div>Using GDC you can produce libs that VC will attempt to link, it's not so simple though, the different CRT makes for plenty of incompatibilities, you have to be really careful to avoid implicit calls to crt functions.</div>
<div>There are also some difference in calling convention, so avoid those too.</div><div><br></div><div>If you're super careful, it is possible (I do this in a couple of projects), but it takes some care. Easier using DLL's, but that's still not trivial either.</div>