struggling to link against a C global in D (win/vs2017)
    DanielG 
    simpletangent at gmail.com
       
    Mon Oct 29 00:28:13 UTC 2018
    
    
  
On Monday, 29 October 2018 at 00:16:38 UTC, Stanislav Blinov 
wrote:
> Should it be extern(Windows), perchance?.. (I haven't D on 
> Windows for ages).
The stdcall calling convention? I think that would only matter 
for the function, and indeed, trying that breaks the function 
being able to link** (and the variable remains broken)
** in 32-bit mscoff mode - no effect on 64-bit (where I think 
stdcall isn't applicable)
    
    
More information about the Digitalmars-d-learn
mailing list