Can somebody tell me why loadSDLImage() isn't loading the SDL3_image.dll library
WhatMeWorry
kheaser at gmail.com
Thu Sep 10 21:45:10 UTC 2026
SDL3 library loads fine. But SDL3_image extension keeps failing
with not found.
I'm using D Lang's exists() and isFile() to verify that the
library file is there
but this contradicts the noLibrary error?
================================================================================
dependency "bindbc-sdl" version="~>2.2.2" // most recent version
of dub package
versions "SDL_3_4_10" // highest version in bindbc-sdl
documentation
versions "SDL_Image_3_2" // highest version
================================================================================
version (Windows)
{
string execPath = thisExePath();
string everything = buildPath(dirName(execPath),
"libraries", "SDL3_image.dll");
writeln("everything = ", everything);
if (exists(everything)) // returns true for files or
directories
{
if (isFile(everything)) // verify it is actually a
file
{
writeln("Found the SDL Image dll file at: ");
writeln(everything);
}
}
imgStatus = loadSDLImage();
writeln("imgStatus = ", imgStatus);
foreach(info; loader.errors)
{
writeln("info.error = ", fromStringz(info.error));
writeln("info.message = ", fromStringz(info.message));
}
}
================================================================================
everything =
C:\Users\Administrator\Documents\GitHub\Dfine\libraries\SDL3_image.dll
Found the SDL Image dll file at:
C:\Users\Administrator\Documents\GitHub\Dfine\libraries\SDL3_image.dll
imgStatus = noLibrary
info.error = SDL3_image.dll
info.message = The specified module could not be found.
More information about the Digitalmars-d-learn
mailing list