[Bug libstdc++/85705] Initializing cout in a dynamically loaded position-independent executable
gcc at foxcub dot org
gcc-bugzilla@gcc.gnu.org
Tue May 8 21:13:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85705
--- Comment #5 from gcc at foxcub dot org ---
Is there a way to make the constructors happen? For example, adding
std::ios_base::Init initalizer;
at the beginning of main() in puppet.cpp doesn't fix the problem.
How can I get the constructors to run?
On Tue, May 8, 2018 at 2:09 PM, pinskia at gcc dot gnu.org <
gcc-bugzilla@gcc.gnu.org> wrote:
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85705
>
> --- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
> I doubt this is supported. The main reason is constructors is not
> happening
> the way you think they should be happening. That is the constructor
> needed for
> cout is not happening.
>
> --
> You are receiving this mail because:
> You reported the bug.
More information about the Gcc-bugs
mailing list