public inbox for gcc-prs@sourceware.org help / color / mirror / Atom feed
From: Phil Edwards <phil@jaj.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, Subject: Re: c++/6257: C-library symbols enter global namespace Date: Thu, 11 Apr 2002 12:36:00 -0000 [thread overview] Message-ID: <20020411193601.6399.qmail@sources.redhat.com> (raw) The following reply was made to PR c++/6257; it has been noted by GNATS. From: Phil Edwards <phil@jaj.com> To: marc-oliver.gewaltig@hre-ftr.f.rd.honda.co.jp Cc: gcc-gnats@gcc.gnu.org Subject: Re: c++/6257: C-library symbols enter global namespace Date: Thu, 11 Apr 2002 15:35:31 -0400 On Thu, Apr 11, 2002 at 04:16:58PM -0000, marc-oliver.gewaltig@hre-ftr.f.rd.honda.co.jp wrote: > >Originator: marc-oliver.gewaltig@hre-ftr.f.rd.honda.co.jp > >Release: unknown-1.0 You need to give an actual version number here... the situation is better with GCC 3.x but is still problematic. If you are using 2.x then the library is very outdated. > However, g++ puts C symbols in the global namespace, > even if included via <c**> headers. Yes, we know. The problem is almost impossible to solve without control over the C library. Since we don't provide a C library -- your system vendor gives you that -- we cannot control its contents. Various ideas have been proposed, but nobody has had time to implement them. > >Fix: > Put all C symbols in the namespace std, if included > by <c*> headers. You do realize that this answer was completely useless? "Fix the problem" is an obvious and unhelpful response to "How to fix?" Now, if you have a /patch/, then that would be very helpful. :-) Phil -- If ye love wealth greater than liberty, the tranquility of servitude greater than the animating contest for freedom, go home and leave us in peace. We seek not your counsel, nor your arms. Crouch down and lick the hand that feeds you; and may posterity forget that ye were our countrymen. - Samuel Adams
next reply other threads:[~2002-04-11 19:36 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2002-04-11 12:36 Phil Edwards [this message] -- strict thread matches above, loose matches on Subject: below -- 2002-04-25 13:56 Phil Edwards 2002-04-12 0:46 Marc-Oliver Gewaltig 2002-04-11 9:26 marc-oliver.gewaltig
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20020411193601.6399.qmail@sources.redhat.com \ --to=phil@jaj.com \ --cc=gcc-prs@gcc.gnu.org \ --cc=nobody@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).