On Wednesday, 18 March 2026 at 19:54:58 UTC, WhatMeWorry wrote:
On Wednesday, 18 March 2026 at 01:39:22 UTC, Richard (Rikki) Andrew Cattermole wrote:
It looks to me like SDL_LoadPNG is missing.

File a bug report: https://github.com/BindBC/bindbc-sdl/issues

I did find this in source/sdl/surface.d so something else is amiss with my environment.

```d
if(sdlVersion >= Version(3,4,0))
{
FnBind[] add = [
{q{SDL_Surface*}, q{SDL_LoadPNG}, q{const(char)* file}},
{q{bool}, q{SDL_SavePNG}, q{SDL_Surface* surface, const(char)* file}},
];
ret ~= add;
}
```

I'm not extremely familiar with bindbc-sdl, but I'm pretty sure you not only have to add the dependency, but you have to declare to bindbc-sdl the *minimum* version you want to support. Without any config, it specifies the oldest version available.

You do this by adding a `version` directive in your dub recipe file.

https://github.com/BindBC/bindbc-sdl?tab=readme-ov-file#sdl-versions

-Steve
  • I'm completely b... WhatMeWorry via Digitalmars-d-learn
    • Re: I'm com... Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
      • Re: I'm... WhatMeWorry via Digitalmars-d-learn
        • Re:... Steven Schveighoffer via Digitalmars-d-learn

Reply via email to