Use bindbc-sdl statically

Ishax isaacbunsen at gmail.com
Sat Apr 24 16:44:09 UTC 2021


On Saturday, 24 April 2021 at 16:13:12 UTC, russhy wrote:
> on windows, for static compilation you have to use "*.lib" 
> files, not "*.a"
>
> also you are missing the
>
> ```
> subConfigurations "bindbc-sdl" "staticBC"
> ```

So I have the lib files. It's failing with only an exit code. No 
window is appearing. It's using the same D code as with the 
dynamic setup which I was able to produce a window with.
```sdl
dependency "bindbc-sdl" version="~>0.1.0"
versions "BindSDL_Static"
subConfigurations "bindbc-sdl" "staticBC"
libs "SDL2" "SDL2_image"
```


More information about the Digitalmars-d-learn mailing list