简体   繁体   中英

How to include multiple directories to search header files in C preprocessor

I am using cpp -Idir_name command to preprocess the source file. In dir_name I have header files included that need to be used for preprocessing.

I want to add multiple directories that can be searched for header files. How can i do this?

您可以有多个-I指令,例如

cpp -Ifoo/bar -Ifoo/blech -I../baz ...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM