我使用自己的Makefile,在修改源文件目录后,原先的目录还在记忆在includes目录下,每次编译后都提示warning:invalid project path
在工程的properties->C/C++ general->paths and symbols中看到一直记忆着先前的目录,但是无法删除。
后在论坛上看到有这样一种解决方法;
I've seen this problem too, old paths are never deleted. To manually fix the file you need to move/delete the ${projectname}.sc file found under ${workspace}/.metadata/.plugins/org.eclipse.cdt.make.core
这个方法是直接删除这个文件。
也可以打开这个目录的${projectname}.sc文件编辑,可以看到类似下面的内容
<includePath path="/home/sun/stm32f103r8/test/app/test"/>
删除不需要的目录,然后重启Eclipse即可。