Microchip
直播中

王玉宁

7年用户 245经验值
私信 关注
[问答]

更改.H文件时MPLAB X 5.0不会重建

嗨,似乎MPLAB X 5/XC8 2在一些包含(*.h)文件被更改时不激活重建项目。例如:Meal.C,UtiL.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.

回帖(3)

吕聪

2018-8-31 16:08:19
在这里工作。更改的本地报头,位于…ExtRealDeST的标题,位于.OrthOrthWordWin 7 Pro文斯的标题。

以上来自于百度翻译


      以下为原文

    Works here. Changed local header, header located at ..other_directory and header located at .other_directory
Win 7 pro.
Vince
举报

陈杰

2018-8-31 16:24:25
MEWWindows 10MPLAB X 5的工作

以上来自于百度翻译


      以下为原文

    works for me
Windows 10
MpLab X 5.00
举报

王兰英

2018-8-31 16:37:52
Hm.…C文件在.\Src中,页眉在….src和.src中。在文件中:C文件处于逻辑文件夹“源文件”中,标题位于“头文件”和“头文件标题”中。

以上来自于百度翻译


      以下为原文

    Hm...
 
.c files are in ..src, headers are in ..src and ..srcheaders.
In the project: .c files are in logical folder 'Source Files', and headers are in 'Header Files' and 'Header Filesheaders'.
 
OK, there is workaround - Clean and build / Clean and Build for debugging.
举报

更多回帖

发帖
×
20
完善资料,
赚取积分