Cannot compile betterC app in windows using stderr

forkit forkit at gmail.com
Wed Feb 2 18:51:04 UTC 2022


On Wednesday, 2 February 2022 at 14:38:49 UTC, Steven 
Schveighoffer wrote:
>
> I'm not sure why it works on 2.091, though, this setup has 
> existed since at least 2015, and probably before. See this PR: 
> https://github.com/dlang/druntime/pull/1360
>

but it doesn't work on 2.091 ??

how this has escaped the testing process ..is..well..kinda 
disturbing.

This code below, will not compile using these parameters:

-m64 -betterC

but WILL using

-m32 -betterC

// ---

module test;

import core.stdc.stdio;

extern (C):

int main(int argc,char** argv)
{
     fprintf(stderr, "grr!\n");

     return 0;
}

// -----


More information about the Digitalmars-d mailing list