using d dll/lib with msvc program

Manu turkeyman at gmail.com
Sun May 13 13:44:07 PDT 2012


On 13 May 2012 22:07, crashtua <crashtua at gmail.com> wrote:

> Is it possible to build dll or lib with dmc to use it in program builded
> in microsoft c++ compiler?
>

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.
There are also some difference in calling convention, so avoid those too.

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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20120513/18ea4ffa/attachment.html>


More information about the Digitalmars-d mailing list