嗨,似乎MPLAB X 5/XC8 2在一些包含(*.h)文件被更改时不激活重建项目。例如:Meal.C,U
tiL.C,init .c,in.c,所有这些都包括Health.h。当一个*.c文件被改变时,“构建项目”编译它。但是,当Health.h文件被更改时,“构建项目”不会激活*.c文件的编译。在MPLAB X 4.15中,在Head头的更改之后,完全相同的项目被正确重建。HealthHealth.h在“头文件”文件夹中,*C文件位于“源文件”文件夹中。
以上来自于百度翻译
以下为原文
Hi,
It seems that MPLAB X 5.0 / XC8 2.0 does not activate rebuild the project when some include (*.h) file is changed. Example:
main.c, util.c, init.c, intr.c - all of them include header.h. When one of the *.c files is changed then "Build Project" compiles it. However, when header.h file is changed, "Build Project" does not activate compiling of the *.C files.
In MPLAB X 4.15, exactly the same project is rebuilt properly after changes in header.h.
header.h is in "Header files" folder and *.c files are in "Source Files" folder.