public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* init_priority attribute and libstdc++
@ 2014-08-17 19:56 Václav Zeman
  0 siblings, 0 replies; 2+ messages in thread
From: Václav Zeman @ 2014-08-17 19:56 UTC (permalink / raw)
  To: gcc-help

[-- Attachment #1: Type: text/plain, Size: 560 bytes --]

Hi.

I want to use the init_priority(prio) attribute
(https://gcc.gnu.org/onlinedocs/gcc/C_002b_002b-Attributes.html#C_002b_002b-Attributes)
to initialize stuff in my library early so that users of the library can
use the library during their own static objects construction. However,
my library uses standard C++ library facilities like std::string,
std::vector<>, etc. The question is:

What is the lowest priority for init_priority attribute that I can use
to still have libstdc++ initialize itself before my library is initialized?

-- 
VZ


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 230 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread
[parent not found: <53F24D45.9090604@gmail.com>]

end of thread, other threads:[~2014-08-18 19:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-17 19:56 init_priority attribute and libstdc++ Václav Zeman
     [not found] <53F24D45.9090604@gmail.com>
2014-08-18 19:04 ` Václav Zeman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).