link errors when using extern (C) structs

Nicholas Wilson iamthewilsonator at hotmail.com
Sun Oct 28 08:38:56 UTC 2018


On Sunday, 28 October 2018 at 06:59:31 UTC, DanielG wrote:
> For the benefit of anybody who encounters a problem like this 
> in the future ... originally I had my C library "header" files 
> (renamed from .di to .d after the feedback from Nicholas) in a 
> special 'headers/' subdir, used as an import path in dub.json. 
> I simply moved those files to the source folder and everything 
> started magically working.
>
> And thanks again, Nicholas!

Oh yeah, I didn't think to mention that you need to compile them 
for them to fix your missing symbols problem.

No problems.


More information about the Digitalmars-d-learn mailing list