Conflict when using stderr with import.

Paul paultjeadriaanse at gmail.com
Tue Jan 5 01:28:58 UTC 2021


I'm trying to use stderr.writefln, while using the 
'bindbc-opengl' package, but when I try to I get the message:

> source\app.d(13,2): Error: function 
> std.stdio.makeGlobal!"core.stdc.stdio.stderr".makeGlobal at 
> C:\D\dmd2\windows\bin\..\..\src\phobos\std\stdio.d(4853,20) 
> conflicts with variable core.stdc.stdio.stderr at 
> C:\D\dmd2\windows\bin\..\..\src\druntime\import\core\stdc\stdio.d(908,18)
> source\app.d(13,8): Error: template makeGlobal(StdFileHandle 
> _iob)() does not have property writeln
> C:\D\dmd2\windows\bin\dmd.exe failed with exit code 1.

This only happens when I import the 'bindbc.opengl' module I 
need, and importing less or being more specific also seems to 
leads to issues.
Is there a way to prevent things like this / am I doing something 
wrong? Or is the issue more on the package's side? (In which case 
I may be asking at the wrong address)


More information about the Digitalmars-d-learn mailing list