How do you use C based libs with D?

Bane branimir.milosavljevic at gmail.com
Fri Jun 11 12:48:17 PDT 2010


Robert M. Münch Wrote:

> Hi, this is a bit related to my post regarding MingW compatibility.
> 
> As D uses Optilink (AFAIU) this implies that all C based code needs to 
> be compiled with DMC?
> 
> Not that I don't like DMC (I like it a lot) but I always had problems 
> (or it requires a bunch of work) to get open-source projects 
> compileable with it.
> 
> How do you deal with this?

I deal the way you say: some compiles nice, some requires (lot) of work, and some are just impossible to compile, so I use dll.

Is there particular reason you avoid using dll's?
> 
> -- 
> Robert M. Münch
> http://www.robertmuench.de
> 



More information about the Digitalmars-d mailing list