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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

Jump to solution
822 Views
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

Labels (1)
0 Kudos
1 Solution
366 Views
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

View solution in original post

0 Kudos
2 Replies
367 Views
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 Kudos
366 Views
mykepredko
Contributor IV

Thanx for the pointer!

 

myke

0 Kudos