Cannot compile betterC app in windows using stderr
bauss
jj_1337 at live.dk
Wed Feb 2 11:46:47 UTC 2022
On Wednesday, 2 February 2022 at 10:53:56 UTC, forkit wrote:
> On Wednesday, 2 February 2022 at 09:27:02 UTC, duser wrote:
>>
>> missing `extern(C)`, it should be:
>>
>> ```D
>> module test;
>> import core.stdc.stdio : FILE, fprintf;
>>
>> extern(C) extern shared FILE* stderr;
>>
>> extern(C) int main(string[] args)
>> {
>> fprintf(stderr, "Test\n",);
>> return 0;
>> }
>> ```
>
> pls.. not more 'extern's ... I'm seeing 'extern' everywhere
> now...
>
> ..I'm gunna puke if I see another one.
>
> and no, that doesn't work either :-(
extern(C) should imply extern in my book. I'm not sure if it
does, but it seems wrong if it doesn't.
More information about the Digitalmars-d
mailing list