Derelict / SDL error
anonymous via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Tue Dec 9 14:27:42 PST 2014
On Tuesday, 9 December 2014 at 16:12:35 UTC, Paul wrote:
> import derelict.sdl2.sdl;
> import std.stdio;
> import std.conv;
>
> void main()
> {
> scope(exit) {
>
> SDL_Quit();
> }
>
> DerelictSDL2.load();
> DerelictSDL2Image.load();
>
> When I run dub that last line gives me:
>
> source/app.d(15): Error: undefined identifier DerelictSDL2Image
You're missing `import derelict.sdl2.image;`.
More information about the Digitalmars-d-learn
mailing list