gdc and gcc object linking issues

Andrej Mitrovic andrej.mitrovich at gmail.com
Thu Jun 7 07:12:46 PDT 2012


On 6/7/12, Kagamin <spam at here.lot> wrote:
> If you define a
> variable in the header, it will be included in each including
> module and you'll get several instances of the variable and
> symbol collision at link time.

This wasn't a collision error, it was a missing symbol error. The
variable is static, so it should be in the data or bss segment. You
seem to be talking about instance variables but that wasn't the issue
here.


More information about the Digitalmars-d-learn mailing list