April 24, 2021

On Saturday, 24 April 2021 at 18:55:33 UTC, ichneumwn wrote:

>

"Use the lib command. If it's static, lib will show you a pile of .obj files inside. Not so if it's am implib."

lib /list foo.lib

This is the output of lib /list SDL2.lib

Microsoft (R) Library Manager Version 14.28.29913.0
Copyright (C) Microsoft Corporation.  All rights reserved.

SDL2.dll
SDL2.dll
...

There's many many lines of just "sdl2.dll"

My files are .lib files.

April 24, 2021

On Saturday, 24 April 2021 at 18:18:11 UTC, russhy wrote:

>

Try to add this in your dub file:

libs "user32" "gdi32" "shell32"

No change.

April 24, 2021

On Saturday, 24 April 2021 at 19:25:47 UTC, Ishax wrote:

>

On Saturday, 24 April 2021 at 18:55:33 UTC, ichneumwn wrote:

>

"Use the lib command. If it's static, lib will show you a pile of .obj files inside. Not so if it's am implib."

lib /list foo.lib

This is the output of lib /list SDL2.lib

Microsoft (R) Library Manager Version 14.28.29913.0
Copyright (C) Microsoft Corporation.  All rights reserved.

SDL2.dll
SDL2.dll
...

There's many many lines of just "sdl2.dll"

My files are .lib files.

That must be it, make sure you compile your sdl as static library

April 25, 2021

On Saturday, 24 April 2021 at 16:13:12 UTC, russhy wrote:

>

also you are missing the

subConfigurations "bindbc-sdl" "staticBC"

That's not necessary when the version BindSDL_Static is provided. The static and staticBC subconfigurations both enable -version=BindSDL_Static, and staticBC is only required when you want to compile as a static binding with -betterC.

April 25, 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.

1 2
Next ›   Last »