[clug] discovering gcc "<xxx.h>" (system) include directories

steve jenkin sjenkin at canb.auug.org.au
Thu Nov 22 22:23:56 MST 2012

Carlo Hamalainen wrote on 23/11/12 4:17 PM:

> What about gcc -v? Are you after the directories that were passed to
> gcc's configure script?

mini-too:linux- steve$ i386-elf-gcc -v
Using built-in specs.
Target: i386-elf
Configured with:
--prefix=/opt/local --infodir=/opt/local/share/info
--mandir=/opt/local/share/man --target=i386-elf
--program-prefix=i386-elf- --program-suffix=-4.3.2
--without-included-gettext --enable-obsolete --with-newlib
--enable-languages=c,c++,objc --build=x86_64-apple-darwin10.8.0
Thread model: single
gcc version 4.3.2 (GCC)

==> --with-gxx-include-dir is defined.

Which, by my reading, is for C++ (g++).

Steve Jenkin, Info Tech, Systems and Design Specialist.
0412 786 915 (+61 412 786 915)
PO Box 48, Kippax ACT 2615, AUSTRALIA

sjenkin at canb.auug.org.au http://members.tip.net.au/~sjenkin

More information about the linux mailing list