Derelict / SDL error

Paul via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Dec 9 08:12:32 PST 2014


On Tuesday, 9 December 2014 at 15:53:11 UTC, Paul wrote:
> Whoa, I read that wrong - I'm sure I tried just adding 
> DerelictSDL2Image.load() to my program an it didnt work. Trying 
> again.

The top of my app.d looks like this:

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

The deps in dub.json are:

	"dependencies": {
	"derelict-sdl2":"~>1.0.0",
	"derelict-gl3":">=1.0.0"
	}

Thanks for perseversing with my density.


More information about the Digitalmars-d-learn mailing list