Using bindbc-sdl with D

idsize idouglas3800 at gmail.com
Sun Mar 12 03:27:05 UTC 2023


On Sunday, 12 March 2023 at 02:24:31 UTC, Richard (Rikki) Andrew 
Cattermole wrote:
> If you add the appropriate versions and copy the files to your 
> project directory (including bindbc-loader) that should work 
> however as long as you compile it in.

I've never used a package manager before so the entire process of 
using one is still strange to me. When using SDL2 with C, I have 
all of the SDL2 files within my MinGW install. To compile I use 
'gcc example.c -lmingw32 -lSDL2 -lSDL2main'. Could I use a method 
similar to that?

     Also here is the full (but not verbose) error log:
     '''
             Starting Performing "debug" build using 
C:\D\dmd2\windows\bin64\dmd.exe for x86_64.
             Building bindbc-sdl 1.3.0: building configuration 
[staticBC]
         failed launching cl.exe /P /Zc:preprocessor /PD /nologo 
C:\Users\idoug\AppData\Local\dub\packages\bindbc-sdl-1.3.0\bindbc-sdl\source\bindbc\sdl\ctypes.c /FIC:\D\dmd2\windows\bin64\..\..\src\druntime\import\importc.h /Fictypes.i
         
C:\Users\idoug\AppData\Local\dub\packages\bindbc-sdl-1.3.0\bindbc-sdl\source\bindbc\sdl\config.d(127,16): Error: C preprocess command cl.exe failed for file C:\Users\idoug\AppData\Local\dub\packages\bindbc-sdl-1.3.0\bindbc-sdl\source\bindbc\sdl\ctypes.c, exit status 1

Error C:\D\dmd2\windows\bin64\dmd.exe failed with exit code 1.
'''


More information about the Digitalmars-d-learn mailing list