码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2016-11-29 00:13:09      阅读:221      评论:0      收藏:0      [点我收藏+]

标签: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版本和引用头文件路径

标签:gcc   头文件路径   

原文地址:http://cui918.blog.51cto.com/5884562/1877404

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!