Missing D files

Paul Backus snarwin at gmail.com
Thu Dec 31 15:54:58 UTC 2020


On Thursday, 31 December 2020 at 15:01:04 UTC, LorenDB wrote:
> I'm trying to learn D, but at the same time I'm trying to 
> generate a Qt binding for D (yes, yes, Qte5, but I don't like 
> the dynamic loading of libraries that Qte5 uses). I know that 
> this is probably a bad stage of the game to be making bindings, 
> but...
>
> Anyway, I'm using Swig to create a wrapper for the Qt files. 
> While creating the first wrapper (QObject), I ran across some 
> errors:
>
> ```
> Performing "debug" build using ldc2 for x86_64.
> qt5-d ~master: building configuration "application"...
> source/QtCore/QObject_im.d(51,19): Error: module string is in 
> file 'std/c/string.d' which cannot be read

This looks like a bug in Swig. The D module corresponding to the 
C header `string.h` is `core.stdc.string`, but it's trying to 
import it as `std.c.string`.


More information about the Digitalmars-d-learn mailing list