clang编译的时候怎么指定include path
在使用clang编译时,可以通过使用-I选项来指定include path。例如:
clang -I/path/to/include/file main.c -o main
其中,-I选项后面跟着指定的include path。在上面的示例中,/path/to/include/file就是指定的include path。这样,编译器就会在该路径下查找头文件。
原文地址: https://www.cveoy.top/t/topic/fPJS 著作权归作者所有。请勿转载和采集!