Re: bindbc, SDL

2025-04-05 Thread Mike Parker via Digitalmars-d-learn
On Thursday, 27 March 2025 at 14:10:21 UTC, Richard (Rikki) Andrew Cattermole wrote: The bindbc family of packages, usually can link against a shared library both during compilation (statically), or during runtime (dynamically). The import library serves no purpose if you are linking dynami

Re: bindbc, SDL

2025-03-27 Thread Claus D. Volko via Digitalmars-d-learn
I got my program to work. The DLL files had been missing and I had to include a call to loadSDL. That was all that had to be done. Hooray! Thanks again for your help.

Re: bindbc, SDL

2025-03-27 Thread Mike Parker via Digitalmars-d-learn
On Thursday, 27 March 2025 at 06:17:28 UTC, Claus D. Volko wrote: Well, well. Now my code builds but it seems that the call of SDL_Init fails. I wonder if SDL3.lib is okay since I built it myself using Visual Studio. Maybe there is some prebuilt version available somewhere? What do you mean

Re: bindbc, SDL

2025-03-27 Thread Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
On 28/03/2025 3:06 AM, Claus D. Volko wrote: On Thursday, 27 March 2025 at 07:40:38 UTC, ryuukk_ wrote: If you are using the shared library instead of the static library, you need to load it, call the `loadSDL` function Judging from what's written on https://en.wikipedia.org/wiki/ Shared_libr

Re: bindbc, SDL

2025-03-27 Thread Claus D. Volko via Digitalmars-d-learn
On Thursday, 27 March 2025 at 07:40:38 UTC, ryuukk_ wrote: If you are using the shared library instead of the static library, you need to load it, call the `loadSDL` function Judging from what's written on https://en.wikipedia.org/wiki/Shared_library it should actually be a static library as

Re: bindbc, SDL

2025-03-27 Thread ryuukk_ via Digitalmars-d-learn
On Thursday, 27 March 2025 at 06:17:28 UTC, Claus D. Volko wrote: Well, well. Now my code builds but it seems that the call of SDL_Init fails. I wonder if SDL3.lib is okay since I built it myself using Visual Studio. Maybe there is some prebuilt version available somewhere? If you are using

Re: bindbc, SDL

2025-03-26 Thread Claus D. Volko via Digitalmars-d-learn
Well, well. Now my code builds but it seems that the call of SDL_Init fails. I wonder if SDL3.lib is okay since I built it myself using Visual Studio. Maybe there is some prebuilt version available somewhere?

Re: bindbc, SDL

2025-03-26 Thread Claus D. Volko via Digitalmars-d-learn
It did build without errors after I removed the line subConfiguration "bindbc-sdl" "staticBC" from dub.sdl.

Re: bindbc, SDL

2025-03-26 Thread Claus D. Volko via Digitalmars-d-learn
Well, I've now used dub build and am basically getting the same issues: C:\Users\Acer\source\repos\adokhugi\game-d>dub build Fetching bindbc-sdl 2.1.0 (getting selected version) Fetching bindbc-common 1.0.5 (getting selected version) Fetching bindbc-loader 1.1.5 (gett