* C++ default namespace @ 2023-12-20 12:29 Apoorslime 2023-12-20 12:30 ` Apoorslime 2023-12-20 16:47 ` Arsen Arsenović 0 siblings, 2 replies; 5+ messages in thread From: Apoorslime @ 2023-12-20 12:29 UTC (permalink / raw) To: gcc-help [-- Attachment #1: Type: text/plain, Size: 121 bytes --] Hi, sorry for the inconvenience but I couldn't understand what it's for namespace std _GLIBCXX_VISIBILITY(default) { } ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: C++ default namespace 2023-12-20 12:29 C++ default namespace Apoorslime @ 2023-12-20 12:30 ` Apoorslime 2023-12-20 19:43 ` Jonathan Wakely 2023-12-20 16:47 ` Arsen Arsenović 1 sibling, 1 reply; 5+ messages in thread From: Apoorslime @ 2023-12-20 12:30 UTC (permalink / raw) To: gcc-help [-- Attachment #1: Type: text/plain, Size: 286 bytes --] I would like to understand specifically how it works and what it is used for Il mer 20 dic 2023, 13:29 Apoorslime <apoorslime@gmail.com> ha scritto: > Hi, sorry for the inconvenience but I couldn't understand what it's for > > namespace std _GLIBCXX_VISIBILITY(default) { > > } > > > ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: C++ default namespace 2023-12-20 12:30 ` Apoorslime @ 2023-12-20 19:43 ` Jonathan Wakely 2023-12-23 16:11 ` Apoorslime 0 siblings, 1 reply; 5+ messages in thread From: Jonathan Wakely @ 2023-12-20 19:43 UTC (permalink / raw) To: Apoorslime; +Cc: gcc-help [-- Attachment #1: Type: text/plain, Size: 502 bytes --] On Wed, 20 Dec 2023, 12:31 Apoorslime via Gcc-help, <gcc-help@gcc.gnu.org> wrote: > I would like to understand specifically how it works and what it is used > for > It's a macro that adds the visibility attribute to the namespace. https://gcc.gnu.org/wiki/Visibility > Il mer 20 dic 2023, 13:29 Apoorslime <apoorslime@gmail.com> ha scritto: > > > Hi, sorry for the inconvenience but I couldn't understand what it's for > > > > namespace std _GLIBCXX_VISIBILITY(default) { > > > > } > > > > > > > ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: C++ default namespace 2023-12-20 19:43 ` Jonathan Wakely @ 2023-12-23 16:11 ` Apoorslime 0 siblings, 0 replies; 5+ messages in thread From: Apoorslime @ 2023-12-23 16:11 UTC (permalink / raw) To: Jonathan Wakely; +Cc: gcc-help [-- Attachment #1: Type: text/plain, Size: 643 bytes --] Thank you for your answer. Il mer 20 dic 2023, 20:43 Jonathan Wakely <jwakely.gcc@gmail.com> ha scritto: > > > On Wed, 20 Dec 2023, 12:31 Apoorslime via Gcc-help, <gcc-help@gcc.gnu.org> > wrote: > >> I would like to understand specifically how it works and what it is used >> for >> > > It's a macro that adds the visibility attribute to the namespace. > > https://gcc.gnu.org/wiki/Visibility > > > >> Il mer 20 dic 2023, 13:29 Apoorslime <apoorslime@gmail.com> ha scritto: >> >> > Hi, sorry for the inconvenience but I couldn't understand what it's for >> > >> > namespace std _GLIBCXX_VISIBILITY(default) { >> > >> > } >> > >> > >> > >> > ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: C++ default namespace 2023-12-20 12:29 C++ default namespace Apoorslime 2023-12-20 12:30 ` Apoorslime @ 2023-12-20 16:47 ` Arsen Arsenović 1 sibling, 0 replies; 5+ messages in thread From: Arsen Arsenović @ 2023-12-20 16:47 UTC (permalink / raw) To: Apoorslime; +Cc: gcc-help [-- Attachment #1: Type: text/plain, Size: 467 bytes --] Apoorslime via Gcc-help <gcc-help@gcc.gnu.org> writes: > Hi, sorry for the inconvenience... There is none :-) > ... but I couldn't understand what it's for > namespace std _GLIBCXX_VISIBILITY(default) { This 'annotation' sets the ELF visibility of the symbols inside the namespace to 'default', if supported. What this means for the symbols in the std namespace is that they will be visible to users of libstdc++.so. > } -- Arsen Arsenović [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 251 bytes --] ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2023-12-23 16:12 UTC | newest] Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2023-12-20 12:29 C++ default namespace Apoorslime 2023-12-20 12:30 ` Apoorslime 2023-12-20 19:43 ` Jonathan Wakely 2023-12-23 16:11 ` Apoorslime 2023-12-20 16:47 ` Arsen Arsenović
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).