G
goran.pusic
Hi,
I have this code where, when built with xlc for aix on ppc, I see a static initialized twice (I checked through a debugger, I am hitting ctor/dtor twice with the same value of "this").
Code in question is in an *.o, linked in several *.so and into my exe. I expect to see either multiple initialization on different addresses, either only one.
Same code, built with gcc on linux, seems to work ok (didn't see a problem, so didn't debug, will do so tomorrow).
Eh?
Am I blind/dumb/..., or what am i missing?
Any idea?
TIA,
Goran.
I have this code where, when built with xlc for aix on ppc, I see a static initialized twice (I checked through a debugger, I am hitting ctor/dtor twice with the same value of "this").
Code in question is in an *.o, linked in several *.so and into my exe. I expect to see either multiple initialization on different addresses, either only one.
Same code, built with gcc on linux, seems to work ok (didn't see a problem, so didn't debug, will do so tomorrow).
Eh?
Am I blind/dumb/..., or what am i missing?
Any idea?
TIA,
Goran.