static data member problem
Mark E.
snowball3@usa.net
Thu Sep 24 21:34:00 GMT 1998
> Alexandre Oliva (oliva@dcc.unicamp.br)
>
> Another solution would be to write the assembly
> code (text) of the ``weak'' definitions into the object file, in a way
> that collect2 could extract it, generate a single assembly file
> containing all the weak definitions, assemble it and link it together
> with the other object files.
>
Sounds kind of like the "in the future" paragraph in the gcc
documentation:
A future version of g++ will support a hybrid model whereby the
compiler will emit any instantiations for which the template
definition is included in the compile, and store template
definitions and instantiation context information into the object file
for the rest.
The link wrapper will extract that information as necessary and
invoke the compiler to produce the remaining instantiations. The
linker will then combine duplicate instantiations.
---------------------------------------
At any rate, I sincerely hope something is worked out for those of
using non-ELF formats.
Mark
--
Mark E. snowball3@usa.net
http://members.xoom.com/snowball3/
More information about the Gcc-bugs
mailing list