How to make ImportC work on Windows?

jmh530 john.michael.hall at gmail.com
Tue Aug 4 17:07:52 UTC 2026


On Friday, 24 July 2026 at 10:49:05 UTC, Guillaume Piolat wrote:
> I've literally never managed to make it work, anyone did on 
> Windows?
>
> Tried running inside the VS prompt, using "cImportPaths" in 
> DUB, but no.
>
> The goal is to build: 
> https://forum.dlang.org/post/zqzeswcqxxwjkdprspdq@forum.dlang.org
> It doesn't find 'box3d/box3d.h'

It's been a minute since I tried it, but my recollection is that 
it worked.

If I were you I would start by:
1) make a bare minimum importC project at the command line and 
confirm that works
2) make a slightly more sophisticated version at the command line 
that uses cImportPaths and confirm that works
3) try to get 1 working in VS
4) try to get 2 working in VS
5) try to build the project in VS (it looks like that is how 
Box3d recommends to be used on Windows)

If you are able to get through steps 1-4 without issue, then it's 
likely an issue with how you have Box3d set up and not anything 
specifically importC. So at that point, my suggestion would be to 
ask on that thread about issues with your set up.


More information about the Digitalmars-d-learn mailing list