Bug Report: CW10 - Deleting .h file does not clear up reference in SourceFile.obj

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Bug Report: CW10 - Deleting .h file does not clear up reference in SourceFile.obj

跳至解决方案
847 次查看
mykepredko
Contributor IV

To the powers that be and anybody that sees this problem:

 

I've found that when I delete a .h file in CW10 and then rebuild, I get an error saying that the .h file is expected in SourceFile.obj (SourceFile being whatever .c the .h was originally loaded into). 

 

To correct the problem, I go into the SourceFile.d file found in BoardType_Int_Flash_Debug|Release - Sources and delete the reference. 

 

In changing/saving the SourceFile.d, I get the message saying that it is a derived file, am I sure I want to do this and I say "Yes". 

 

After doing this, the project builds without any issues. 

 

Regards,

 

myke

标签 (1)
0 项奖励
1 解答
391 次查看
CrasyCat
Specialist III

Hello

 

An easier way to fix that is to click right on the project name in CodeWarrior project window and select "Clean Project".

This will remove all intermediate .d files and you should be able to build after that.

 

CrasyCat

在原帖中查看解决方案

0 项奖励
2 回复数
392 次查看
CrasyCat
Specialist III

Hello

 

An easier way to fix that is to click right on the project name in CodeWarrior project window and select "Clean Project".

This will remove all intermediate .d files and you should be able to build after that.

 

CrasyCat

0 项奖励
391 次查看
mykepredko
Contributor IV

Thanx for the pointer!

 

myke

0 项奖励