Including a header file from another directory

前端 未结 4 1544
别那么骄傲
别那么骄傲 2021-02-03 18:01

I have a main directory A with two sub directories B and C.

Directory B contains a header file structures.c

4条回答
  •  难免孤独
    2021-02-03 18:54

    When referencing to header files relative to your c file you should use #include "path/to/header.h"

    The form #include is only used for internal headers or for explicitly added directories (in gcc with the -I option).

提交回复
热议问题