struggling to link against a C global in D (win/vs2017)

Adam D. Ruppe destructionator at gmail.com
Mon Oct 29 00:36:51 UTC 2018


On Monday, 29 October 2018 at 00:12:43 UTC, DanielG wrote:
> It's defined in the .cpp file.

Ah, of course, good.

The other thing that might be an issue is the leading _ the 
compiler frequently adds. You might be able to hack it with 
pragma(mangle, "myIntValue") on the declaration too. idk for sure 
tho.


More information about the Digitalmars-d-learn mailing list