www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Can't find the loadSDLImage function

reply WhatMeWorry <kheaser gmail.com> writes:
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?
Mar 07
next sibling parent reply user1234 <user1234 12.de> writes:
On Saturday, 7 March 2026 at 22:56:41 UTC, WhatMeWorry wrote:
 I load the SDL3 library fine, but when i try and load 
 SDL3_image.dll i get error:

 [...]

 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?
The function definitions are generated using mixins, at first glance the one you are looking for has to be in sdl_image, so based on the module name: ```d import bindbc.sdl_image; ``` should be tried.
Mar 08
parent user1234 <user1234 12.de> writes:
On Sunday, 8 March 2026 at 10:27:57 UTC, user1234 wrote:
 On Saturday, 7 March 2026 at 22:56:41 UTC, WhatMeWorry wrote:
 I load the SDL3 library fine, but when i try and load 
 SDL3_image.dll i get error:

 [...]

 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?
The function definitions are generated using mixins, at first glance the one you are looking for has to be in sdl_image, so based on the module name: ```d import bindbc.sdl_image; ``` should be tried.
rather just ```d import sdl_image; ```
Mar 08
prev sibling parent KlikBcaBisnis <walkersmith0122 gmail.com> writes:
Perumahan Alam Sutera, Jl. Alam Sutera Boulevard No.10A, 
Pakulonan, Kec. Serpong, Kota Tangerang Selatan, Banten 15325
Mar 10