GCC 3.2.2 (OAR build) question

leonp at plris.com leonp at plris.com
Tue Feb 28 12:32:43 UTC 2006


On Tuesday, 28 בFebruary 2006 14:23, Chris Johns wrote:
> leonp at plris.com wrote:
> > Please, describe what is the difference? Please!
>
> If the C++ code is contained in the one file and so has no external
> symbols referenced by the program else where the linker passes over it.
>
> Turn the problem around. Say you have a C++ component in a library with
> static constructors. You would not want it linked in just because it had
> a static constructor. You would only want this to happen when you
> reference it.
>
> If you want the static constructor in the constructor list you will need
> to force the object file into the executable or reference a symbol in it.
>
> Regards
> Chris
OK, understood.
It is clear and I agree, it must be so.
Thank you very very much.
-- 
Leon 



More information about the users mailing list