From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 110727 invoked by alias); 24 Jun 2015 18:38:44 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 110715 invoked by uid 89); 24 Jun 2015 18:38:43 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.2 required=5.0 tests=AWL,BAYES_00,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-ig0-f179.google.com Received: from mail-ig0-f179.google.com (HELO mail-ig0-f179.google.com) (209.85.213.179) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Wed, 24 Jun 2015 18:38:42 +0000 Received: by igbiq7 with SMTP id iq7so103398356igb.1 for ; Wed, 24 Jun 2015 11:38:40 -0700 (PDT) X-Received: by 10.42.214.144 with SMTP id ha16mr11222840icb.70.1435171120499; Wed, 24 Jun 2015 11:38:40 -0700 (PDT) MIME-Version: 1.0 Received: by 10.36.3.2 with HTTP; Wed, 24 Jun 2015 11:38:20 -0700 (PDT) In-Reply-To: References: From: Siddhartha Jain Date: Wed, 24 Jun 2015 18:38:00 -0000 Message-ID: Subject: Re: Custom gcc installation include files To: Jonathan Wakely Cc: gcc-help Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-SW-Source: 2015-06/txt/msg00165.txt.bz2 Hm I see. I'm trying to compile Qt and I'm getting the error In file included from /home/sj1/Software/qt/4.8.7/build/include/QtCore/../../../qt-everywhere-ope= nsource-src-4.8.7/src/corelib/tools/qbytearray.h:48:0, from /home/sj1/Software/qt/4.8.7/build/include/QtCore/qbytearray.h:1, from /home/sj1/Software/qt/4.8.7/build/include/QtCore/../../../qt-everywhere-ope= nsource-src-4.8.7/src/corelib/tools/qstring.h:46, from /home/sj1/Software/qt/4.8.7/build/include/QtCore/qstring.h:1, from /home/sj1/Software/qt/4.8.7/build/include/QtCore/../../../qt-everywhere-ope= nsource-src-4.8.7/src/corelib/io/qiodevice.h:51, from /home/sj1/Software/qt/4.8.7/build/include/QtCore/qiodevice.h:1, from /home/sj1/Software/qt/4.8.7/build/include/QtCore/../../../qt-everywhere-ope= nsource-src-4.8.7/src/corelib/io/qdatastream.h:46, from /home/sj1/Software/qt/4.8.7/build/include/QtCore/qdatastream.h:1, from /home/sj1/Software/qt/4.8.7/build/include/QtCore/../../../qt-everywhere-ope= nsource-src-4.8.7/src/corelib/tools/qstringlist.h:46, from /home/sj1/Software/qt/4.8.7/build/include/QtCore/qstringlist.h:1, from project.h:45, from project.cpp:42: /usr/include/string.h:548:5: error: =E2=80=98__locale_t=E2=80=99 has not be= en declared __locale_t __loc) there are a couple of other similar errors but this is the first one and I thought it might be because the system gcc is 4.4.7 and it's using the executable for gcc 4.8.1 --Sid On Wed, Jun 24, 2015 at 12:43 PM, Jonathan Wakely w= rote: > On 24 June 2015 at 11:56, Siddhartha Jain wrote: >> Hi, >> >> I have a custom installation of gcc 4.8.1 in my home directory. >> However the include files in that installation have no extensions! >> (except for tgmath.h, fenv.h, complex.h, and cxxabi.h) > > Which files are you talking about? > > Most C++ Standard Library headers do not have extensions, so that's norma= l. > > >> Thus even if I include the installation include directory (for me >> under include/c++/4.8.1) in C_INCLUDE_PATH, it still goes to the >> system-wide gcc include files. > > You should never need to add GCC's own include directories to its > search paths, it looks there automatically. So you're doing something > wrong. > >> Why do the include files in the gcc install not have extensions and >> will renaming them to have a .h extension fix the problem? > > What problem? > > Most C++ headers are not supposed to have extensions, so renaming them > is not going to help. > > It sounds like you have some problem compiling something and are > confused about C++ headers, but it's hard to tell. Please describe the > symptoms of the problem, not what you think is causing it. > > What are you trying to do? > > What errors are you getting?