How to include header files in GCC search path?

后端 未结 3 2162
深忆病人
深忆病人 2020-11-27 04:39

I have the following code in a sample file:

#include \"SkCanvas.h\"
#include \"SkDevice.h\"
#include \"SkGLCanvas.h\"
#include \"SkGraphics.h\"
#include \"Sk         


        
3条回答
  •  醉话见心
    2020-11-27 05:05

    The -I directive does the job:

    gcc -Icore -Ianimator -Iimages -Ianother_dir -Iyet_another_dir my_file.c 
    

提交回复
热议问题