[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-2.6.34.13 steve$ i386-elf-gcc -v
Using built-in specs.
Target: i386-elf
Configured with:
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-gcc/i386-elf-gcc/work/gcc-4.3.2/configure
--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
--disable-libgfortran
--with-gxx-include-dir=/opt/local/i386-elf/include/c++/4.3.2/
--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