Can't get D calling C to build.

Andrej Mitrovic andrej.mitrovich at gmail.com
Mon Aug 23 14:50:31 PDT 2010


I haven't read the specifics of your problem yet,  but have you tried using the newer TDM port of MinGW? The MinGW binaries are still using an older port of GCC, but the TDM version is much newer, so it might be worth trying it out.

Get it from here:  http://tdm-gcc.tdragon.net/

Hope that helps.

Bob Cowdery Wrote:

>  On 23/08/2010 20:24, Bob Cowdery wrote:
> >  On 22/08/2010 22:16, Bob Cowdery wrote:
> >>  On 22/08/2010 20:57, bearophile wrote:
> >>> Bob Cowdery:
> >>>> Well, the link still works but the download is 0 bytes so I guess its
> >>>> not available. Thanks for the thought.
> >>> That links works for me :-)
> >>> Be happy, bye,
> >>> bearophile
> >> Works if I paste it but not straight from the email,odd.
> > Does the tool work for you. If I just build the default GCC DLL and then
> > try to convert the import library it says it's not an import library.
> >
> > bob
> Addendum: The plot thickens. If I build a dll with my VC++ Express 2010
> then I can convert the import library and it actually works from D.
> However if I build with MinGW GCC it doesn't even recognise the library
> even though it is COFF format. My preferred route unfortunately is GCC.
> I just got 'The D Programming Language' book and that devotes a whole
> half page to this very important topic. This seems to be rather a
> minefield and so far there only seems to be one route through it.
> 
> bob



More information about the Digitalmars-d-learn mailing list