gdc and gcc object linking issues

Andrej Mitrovic andrej.mitrovich at gmail.com
Fri Jun 8 15:22:04 PDT 2012


On 6/8/12, Kagamin <spam at here.lot> wrote:
> Well, I'm not a C++ pro, but I won't recommend to place
> initializer in the header. That sounds odd. What would it mean? I
> guess, it will mean definition, so chances are it's not what you
> want. Initializers belong to definitions, and definitions belong
> to .cpp, that's how it usually works unless you know for sure you
> want something else. Bindings are just fine with declarations
> alone + support code.
>

Yeah I thought they might appear in an existing library in a header
file but it seems they're in the definition file. Thanks for your
help.


More information about the Digitalmars-d-learn mailing list