为什么gcc无法使用-I选项找到包含路径?

时间:2018-11-25 10:47:43

标签: c gcc include

这是我的项目树

project  
--bin  
--source  
----include  
------foo.h  
----main.c  
----foo.c

但是当我运行gcc -I./source/include ./bin/main.exe ./source/*.c时,它给出了没有此类文件或目录的错误
如何让gcc知道include目录在哪里?

1 个答案:

答案 0 :(得分:3)

您需要使用CREATE ALGORITHM = UNDEFINED DEFINER = "***" @"%" SQL SECURITY DEFINER VIEW "schema"."v_student_table" AS select "s"."id_student" AS "id_student", "s"."name" AS "name", "m"."id_month" AS "id_month", coalesce(sum("sm"."amount"),0) AS "amount", coalesce(month("sm"."date"),"month"."id_month") AS "month", coalesce(year("sm"."date"),"year"."id_year") AS "anno" from ((("schema"."studentMovement" "sm" left join "schema"."students" "s" on "s"."id_student"="sm"."id_student") left join "schema"."month" "m" on "m"."id_month"="sm".id_month") inner join "schema"."years" "y" on "y"."id_year"="sm".id_year") group by coalesce(year("sm"."date"),"year"."id_year"), coalesce(month("sm"."date"),"month"."id_month"), "s"."id_student", "s"."name", "m"."id_month" 选项运行gcc来设置输出位置。

-o