On Sun, 1 May 2011, Rob S. wrote:
dnormandin@select-man:~$ ls -l /usr/include/asm/errno.h ls: cannot access /usr/include/asm/errno.h: No such file or directory dnormandin@select-man:~$ cpp v cpp: v: No such file or directory cpp: warning: '-x c' after last input file has no effect cpp: no input files
Well, for the second test, all you need to do there is add the - to the v cpp -v or? CC -v or g++ -v The '-' indicates to the shell that what comes next is a switch, and in the case of the GCC C++ compiler, the option -v gives the version. ?Alternatively, the Solaris C++ compiler uses -V.
Too early in the morning here in Canada, when I tested and wrote the reply. :) Here we go again: dnormandin@select-man:~/ cpp -v Using built-in specs. Target: i486-linux-gnu Configured with: ../gcc-4.1.2+gm2-20101211/configure --enable-languages=c,c++,gm2 --prefix=/opt/gm2 --libexecdir=/usr/lib/gm2/libexec --infodir=/opt/gm2/share/info --mandir=/opt/gm2/share/man --disable-nls --enable-long-long --without-included-gettext --with-dwarf2 --disable-libssp --disable-multilib --enable-libstdcxx-debug --enable-shared --build=i486-linux-gnu --host=i486-linux-gnu Thread model: posix gcc version 4.1.2 /usr/lib/gm2/libexec/gcc/i486-linux-gnu/4.1.2/cc1 -E -quiet -v - -mtune=i486 ignoring nonexistent directory "/opt/gm2/lib/gcc/i486-linux-gnu/4.1.2/../../../../i486-linux-gnu/include" #include "..." search starts here: #include <...> search starts here: /usr/local/include /opt/gm2/include /opt/gm2/lib/gcc/i486-linux-gnu/4.1.2/include /usr/include End of search list. dnormandin@select-man:~/ locate errno.h /usr/include/errno.h /usr/include/asm-generic/errno.h /usr/include/bits/errno.h /usr/include/i386-linux-gnu/asm/errno.h /usr/include/linux/errno.h /usr/include/sys/errno.h /usr/lib/syslinux/com32/include/errno.h /usr/local/include/apr_errno.h /usr/local/include/mailutils/errno.h /usr/share/doc/fp-docs/2.4.0/rtl/baseunix/fpgeterrno.html /usr/share/doc/fp-docs/2.4.0/rtl/baseunix/fpseterrno.html /usr/share/doc/fp-docs/2.4.0/rtl/oldlinux/errno.html /usr/src/linux-headers-2.6.38-8/arch/alpha/include/asm/errno.h /usr/src/linux-headers-2.6.38-8/arch/arm/include/asm/errno.h /usr/src/linux-headers-2.6.38-8/arch/arm/mach-bcmring/include/csp/errno.h /usr/src/linux-headers-2.6.38-8/arch/avr32/include/asm/errno.h /usr/src/linux-headers-2.6.38-8/arch/blackfin/include/asm/errno.h /usr/src/linux-headers-2.6.38-8/arch/cris/include/asm/errno.h /usr/src/linux-headers-2.6.38-8/arch/frv/include/asm/errno.h /usr/src/linux-headers-2.6.38-8/arch/h8300/include/asm/errno.h /usr/src/linux-headers-2.6.38-8/arch/ia64/include/asm/errno.h /usr/src/linux-headers-2.6.38-8/arch/m32r/include/asm/errno.h /usr/src/linux-headers-2.6.38-8/arch/m68k/include/asm/errno.h /usr/src/linux-headers-2.6.38-8/arch/microblaze/include/asm/errno.h /usr/src/linux-headers-2.6.38-8/arch/mips/include/asm/errno.h /usr/src/linux-headers-2.6.38-8/arch/mn10300/include/asm/errno.h /usr/src/linux-headers-2.6.38-8/arch/parisc/include/asm/errno.h /usr/src/linux-headers-2.6.38-8/arch/powerpc/include/asm/errno.h /usr/src/linux-headers-2.6.38-8/arch/s390/include/asm/errno.h /usr/src/linux-headers-2.6.38-8/arch/score/include/asm/errno.h /usr/src/linux-headers-2.6.38-8/arch/sh/include/asm/errno.h /usr/src/linux-headers-2.6.38-8/arch/sparc/include/asm/errno.h /usr/src/linux-headers-2.6.38-8/arch/tile/include/asm/errno.h /usr/src/linux-headers-2.6.38-8/arch/x86/include/asm/errno.h /usr/src/linux-headers-2.6.38-8/arch/xtensa/include/asm/errno.h /usr/src/linux-headers-2.6.38-8/include/asm-generic/errno.h /usr/src/linux-headers-2.6.38-8/include/linux/errno.h /usr/src/linux-headers-2.6.38-8-generic/include/linux/errno.h -- Duke