gcc:如何忽略标准包含路径? [英] gcc: How to ignore standard include paths?

查看:365
本文介绍了gcc:如何忽略标准包含路径?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要使用标准库标题的修改版本来编译一些文件。使用Visual C ++编译器,我将通过使用 / X(忽略标准包含路径) / I(其他包含目录)参数来执行此操作。如何用gcc完成这项工作?

I need to compile some files with a usage of modified versions of standard library headers. With Visual C++ compiler I will do this by usage of /X (Ignore Standard Include Paths) and /I (Additional Include Directories) parameters. How this should be done with gcc?

推荐答案

gcc -nostdinc -I/custom/include/path/goes/here

-nostdinc 忽略标准C包含目录

-nostdinc ++ 忽略标准C ++包含目录

-nostdinc ignores standard C include directories
-nostdinc++ ignores standard C++ include directories

这篇关于gcc:如何忽略标准包含路径?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆