gcc インストールインクルードファイルのカスタマイズ

gcc インストールインクルードファイルのカスタマイズ

私のホームディレクトリにg ++ 4.8.1をカスタムインストールしました。ただし、このインストールに含まれるファイルには拡張子はありません! (tgmath.h、fenv.h、complex.h、cxxabi.h を除く)

したがって、インストールインクルードディレクトリ(私の場合はinclude / c ++ / 4.8.1の下にあります)をC_INCLUDE_PATHに含めても、システム全体のgccインクルードファイルに移動します。

gccインストールに拡張子のないファイルが含まれるのはなぜですか?拡張子を.hに置き換えると問題は解決しますか?

編集:背景 - Centos 6.5でQtをコンパイルしようとしています。システム全体のg ++​​(バージョン4.4.7)でコンパイルすると機能しますが、独自のコンパイル済みg ++バージョン(4.8.1)を使用すると機能しません。それは私にエラーを与える

/home/sj1/Software/qt/4.8.7/build/include/QtCore/../../../qt-everywhere-opensource-src-4.8.7/src/corelib/tools/に含まれるファイルqbytearray.h:48:0, /home/sj1/Software/qt/4.8.7/build/include/QtCore/qbytearray.h:1, /home/sj1/Software/qt/4.8.7/build / include/ QtCore/../../../qt-everywhere-opensource-src-4.8.7/src/corelib/tools/qstring.h:46、/home/sj1/Software/qt/4.8から。 /build/include/QtCore/qstring.h:1、/home/sj1/Software/qt/4.8.7/build/include/QtCore/../../../qt-everywhere-opensource-srcで - 4.8.7/src/corelib/io/qiodevice.h:51, /home/sj1/Software/qt/4.8.7/build/include/QtCore/qiodevice.h:1, /home/sj1/Software / qt/ 4.8.7/build/include/QtCore/../../../qt-everywhere-opensource-src-4.8.7/src/corelib/io/qdatastream.h:46、/home/sj1から/Software /qt/4.8.7/build/include/QtCore/qdatastream.h:1、/home/sj1/Software/qt/4.8.7/build/include/QtCore/../../..から/qt- everywhere-opensource-src-4.8.7/src/corelib/tools/qstringlist.h:46, /home/sj1/Software/qt/4.8.7/build/include/QtCore/qstringlist.h:1 , project.h :45, project.cpp:42:/usr/include/string.h:548:5: エラー: '__locale_t' が宣言されていません __locale_t __loc)

ベストアンサー1

おすすめ記事