Use bindbc-sdl statically
Mike Parker
aldacron at gmail.com
Sun Apr 25 07:06:23 UTC 2021
On Saturday, 24 April 2021 at 16:48:49 UTC, Ishax wrote:
> Yet the .exe functions if I supply it with .dlls. Thats silly.
That's because you're linking with the import library. On
Windows, static libraries and import libraries both have the
`.lib` extension. The SDL development packages on the download
page at
http://libsdl.org/download-2.0.php
do not include precompiled static libraries. They only include
the DLLs and the import libraries. So you will either have to
compile an SDL static library yourself or find someone who has
made it available for download. And then when you link it with
your executable, you will also need to link with every dependency
that SDL has.
More information about the Digitalmars-d-learn
mailing list