Can't find the loadSDLImage function

WhatMeWorry kheaser at gmail.com
Sat Mar 7 22:56:41 UTC 2026


I load the SDL3 library fine, but when i try and load 
SDL3_image.dll i get error:

libraries\load_sdl_libraries.d(170,22): Error: undefined 
identifier `loadSDLImage`

     LoadMsg imgRet = loadSDLImage();

I tried adding

import bindbc.sdl.image;

libraries\load_sdl_libraries.d(168,12): Error: unable to read 
module `image`
     import bindbc.sdl.image;
            ^
libraries\load_sdl_libraries.d(168,12):        Expected 
'bindbc\sdl\image.d' or 'bindbc\sdl\image\package.d' in one of 
the following import paths:
import path[0] = 
C:...\dub\packages\bindbc-sdl\2.3.4\bindbc-sdl\source
import path[1] = 
C:...\dub\packages\bindbc-common\1.0.5\bindbc-common\source
import path[2] = 
C:...\dub\packages\bindbc-loader\1.1.5\bindbc-loader\source


I've got the bindbc-sdl, -common, -loader which is all the 
dependencies required by SDL.
I've even tried searching through github trying to find 
loadSDLImage() function but with no success. where is this 
function?






More information about the Digitalmars-d-learn mailing list