Offset of globals in linking time.

Peter Alexander peter.alexander.au at gmail.com
Mon Feb 4 12:40:35 PST 2013


On Monday, 4 February 2013 at 20:16:54 UTC, JDavidls wrote:
> I need to initialize a global variable with a pointer to 
> another global variable but dmd compler raises an error:

That's because a is not a global variable, it is thread local.

Try:

__gshared uint a = 5;



More information about the Digitalmars-d mailing list