gdc and gcc object linking issues
Kagamin
spam at here.lot
Thu Jun 7 12:04:14 PDT 2012
On Thursday, 7 June 2012 at 14:29:24 UTC, Regan Heath wrote:
> In the quoted passage above I suspect he was referring to a
> static/global variable defined in a C header, not a C++ class
> member static or otherwise.
I'm pretty sure you can define (with storage) global variable in
header file both in C and C++. But don't qualify it static in C:
this will make it hidden symbol so you will have several
instances of the variable but no symbol collision.
More information about the Digitalmars-d-learn
mailing list