无法解析gcc中的头文件路径

无法解析gcc中的头文件路径,gcc,makefile,Gcc,Makefile,在这里,当使用gcc进行编译时,我面临一个解决路径的问题。 这里我有下面的文件夹结构: 算法有两个文件夹 算法--- 应用程序 链接列表 LinkedList having two folder: header and source Now in /Algorithm/LinkedList/header has LinkedList.h file And in /Algorithm/LinkedList/source has LinkedList.c file. In /

在这里,当使用gcc进行编译时,我面临一个解决路径的问题。 这里我有下面的文件夹结构:
算法有两个文件夹

算法---

应用程序
链接列表

LinkedList having two folder: header and source    
Now in /Algorithm/LinkedList/header has LinkedList.h file    
And in /Algorithm/LinkedList/source has LinkedList.c file.    
In /Algorithm/App I have AppMain.c    
In AppMain.c I am doing    

#include"LinkedList.h"
当我试图用下面的命令编译LinkedList.c时,它执行得很好:

gcc -I LinkedList/header LinkedList/source/LinkedList.c -c    
它正在编译fine并生成LinkedList.o文件。
但当试图以与下面相同的方式编译AppMain.c时,它给我的错误是LinkedList.h:没有这样的文件或目录

gcc -I LinkedList/header App/AppMain.c -c    

请帮我解决这个问题

您能否在您的问题中包括
pwd
ls-R
的输出?尝试使用
绝对路径
pwd is/home/user/algorithmI尝试使用绝对路径。同样的事情当你在没有Make的情况下尝试这些命令时,你会得到同样的结果吗?交换源文件的时候呢?