查看gcc版本和引用头文件路径

echo | gcc -v -x c -E -

Using built-in specs.

COLLECT_GCC=gcc

Target: i686-pc-linux-gnu

Configured with: ../gcc-5.2.0/configure --enable-checking=release --enable-languages=c,c++ --disable-multilib

Thread model: posix

gcc version 5.2.0 (GCC)

COLLECT_GCC_OPTIONS='-v' '-E' '-mtune=generic' '-march=pentiumpro'

/usr/local/libexec/gcc/i686-pc-linux-gnu/5.2.0/cc1 -E -quiet -v - -mtune=generic -march=pentiumpro

ignoring nonexistent directory "/usr/local/lib/gcc/i686-pc-linux-gnu/5.2.0/../../../../i686-pc-linux-gnu/include"

#include "..." search starts here:

#include <...> search starts here:

/usr/local/lib/gcc/i686-pc-linux-gnu/5.2.0/include

/usr/local/include

/usr/local/lib/gcc/i686-pc-linux-gnu/5.2.0/include-fixed

/usr/include

End of search list.

# 1 ""

# 1 ""

# 1 ""

# 1 ""

COMPILER_PATH=/usr/local/libexec/gcc/i686-pc-linux-gnu/5.2.0/:/usr/local/libexec/gcc/i686-pc-linux-gnu/5.2.0/:/usr/local/libexec/gcc/i686-pc-linux-gnu/:/usr/local/lib/gcc/i686-pc-linux-gnu/5.2.0/:/usr/local/lib/gcc/i686-pc-linux-gnu/

LIBRARY_PATH=/usr/local/lib/gcc/i686-pc-linux-gnu/5.2.0/:/usr/local/lib/gcc/i686-pc-linux-gnu/5.2.0/../../../:/lib/:/usr/lib/

COLLECT_GCC_OPTIONS='-v' '-E' '-mtune=generic' '-march=pentiumpro'


你可能感兴趣的:(编译链接)