From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28443 invoked by alias); 13 Aug 2015 10:04:40 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 28389 invoked by uid 48); 13 Aug 2015 10:04:35 -0000 From: "noloader at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/67195] cpp and g++ does not define __GLIBCXX__ Date: Thu, 13 Aug 2015 10:04:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 5.1.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: noloader at gmail dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-08/txt/msg00879.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67195 --- Comment #5 from Jeffrey Walton --- (In reply to Andrew Pinski from comment #3) > (In reply to Jeffrey Walton from comment #2) > > > > > > $ uname -a > > > Linux localhost.localdomain 4.1.3-201.fc22.x86_64 #1 SMP Wed Jul 29 19:50:22 > > > UTC 2015 x86_64 x86_64 x86_64 GNU/Linux > > > > > > $ g++ --version > > > g++ (GCC) 5.1.1 20150618 (Red Hat 5.1.1-4) > > > Copyright (C) 2015 Free Software Foundation, Inc > > > > (In reply to Jonathan Wakely from comment #1) > > > The library macro is defined by the library, not the compiler. You didn't > > > include any library headers. > > > > Thanks Jonathon. > > > > The documentation does not state that requirement. Perhaps this is a > > documentation bug? > > I think the document assumes that since this is the library docs rather than > the compiler or preprocessor doc n Yeah, I have the problem of "literal readings" in real life, too. When I parsed the page on macros, I found it to be an interesting implementation detail. And I thought it was useful to know cpp or g++ fetched the macro from c++config.h. (A related factoid is LLVM uses ). But because I was not explicitly told to include c++config.h or another standard library header for the define, I did not make the leap it was a requirement. For me (naively), 'cpp' or 'g++ -dM' provide the preporcessor macros used to compile a source file, and the way they are delivered to me is indistinguishable from magic.