Trivial simple OpenGl working example
Виталий Фадеев
vital.fadeev at gmail.com
Thu Jul 8 16:11:54 UTC 2021
On Thursday, 8 July 2021 at 16:01:37 UTC, Dennis wrote:
> On Thursday, 8 July 2021 at 14:20:16 UTC, Виталий Фадеев wrote:
>> Has dub flag for disable "warnings are treated as errors" ?
>
> You have to edit the package file to include `buildRequirements
> "allowWarnings"`, see
> https://dub.pm/package-format-sdl.html#build-requirements
Dennis. thank.
# gfm7/examples/simpleshader/dub.json
{
"targetType": "executable",
"name": "simpleshader",
"sourcePaths": [ "." ],
"importPaths": [ "." ],
"mainSourceFile": "simpleshader.d",
"dependencies":
{
"gfm7:sdl2": {"path": "../../",.
"buildRequirements": [ "allowWarnings" ]
},
"gfm7:opengl": {"path": "../../"},
"gfm7:logger": {"path": "../../"}
},
"versions": [ "SDL_205", "GL_33", "GL_ARB"],
....
"buildRequirements": [ "allowWarnings" ]
}
No effect. Same error.
I fix source code, as drug say.
More information about the Digitalmars-d-learn
mailing list