Hello.
I wanted to use the latest version of stb library https://code.dlang.org/packages/stb . Apparently it switched from manual D bindings to using ImportC feature instead. The package is importing https://github.com/Temtaime/stb/blob/main/source/stb_main.c which in turns is #include'ing several C header files such as https://github.com/Temtaime/stb/blob/main/lib/stb_image.h
Now this header files imports several C stdlib headers like:
#include <stdarg.h>
#include <stddef.h> // ptrdiff_t on osx
#include <stdlib.h>
#include <string.h>
#include <limits.h>
When I try to compile such code it fails because it can't find the C stdlib:
C:\Users\haxx\AppData\Local\dub\packages\stb-2.0.3\stb\source../lib/stb.h(200): fatal error C1034: stdarg.h: no include path set
C:\Users\haxx\AppData\Local\dub\packages\stb-2.0.3\stb\source\stb\package.d(2,15): Error: C preprocess command C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\HostX64\x64\cl.exe failed for file C:\Users\haxx\AppData\Local\dub\packages\stb-2.0.3\stb\source\stb_main.c, exit status 2
What can I do to fix this issue? I'm running DMD v2.102 on Windows 11.