MinGW64 Build Instructions

Daniel Green venix1 at gmail.com
Wed Jun 1 18:47:26 PDT 2011


On 5/29/2011 4:20 AM, Vladimir Panteleev wrote:
> Pretty sure it's not the calling convention. aApplycdzd exists only in
> the object files for modules which use foreach (dchar c; someString).

I looked into the issue and the problem lines with the use of sprintf in 
the compiler source.  Line 1833 of statement.c.

---
int j = sprintf(fdname, "_aApply%s%.*s%zd", r, 2, fntab[flag], dim);
---

%zd is not supported by MSVCRT sprintf causing _aApplycdzd.  What I'm 
curious about is why this issue only surfaced with 64-bit support.

I've included a patch that solves the issue by enabling MinGW's ANSI 
printf replacements.  I'll apply it to the the repository later.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: MinGW-ANSI-printf.patch
URL: <http://lists.puremagic.com/pipermail/d.gnu/attachments/20110601/ee7c943c/attachment.ksh>


More information about the D.gnu mailing list