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

kinke noone at nowhere.com
Mon Oct 29 01:03:32 UTC 2018


On Monday, 29 October 2018 at 00:01:21 UTC, DanielG wrote:
> DLLPROJECT_API

I guess that's a __declspec(dllexport); in that case try

export extern(C) extern __gshared int myIntValue;

=> that's dllimport for extern variables, and dllexport for 
non-extern ones.


More information about the Digitalmars-d-learn mailing list