首页 > 代码库 > 查看gcc版本和引用头文件路径
查看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 "<stdin>"
# 1 "<built-in>"
# 1 "<command-line>"
# 1 "<stdin>"
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‘
本文出自 “清风徐来” 博客,请务必保留此出处http://cui918.blog.51cto.com/5884562/1877404
查看gcc版本和引用头文件路径