Go back to Richel Bilderbeek's homepage.

Go back to Richel Bilderbeek's C++ page.

 

 

 

 

 

(C++) Unable to open file 'UNITFORM_MYFORM.OBJ'

 

Link error.

 

IDE: C++ Builder 6.0

Project type: VCL

 

 

 

 

 

Full error messages

 

[Linker Fatal Error] Fatal: Unable to open file 'UNITFORM_MYFORM.OBJ'

 

 

 

 

 

Cause

 

Due to a Rename refactoring the following #pragma was renamed from

 

#pragma link "UnitFormMyForm"

 

to

 

#pragma link "UnitForm_MyForm"

 

But the filename for this Form remained UnitFormMyForm. Therefore, UnitForm_MyForm.obj could not be found.

 

 

 

 

 

Solution

 

Let the #pragma link to an existing Form:

 

#pragma link "UnitFormMyForm"

 

 

 

 

 

Go back to Richel Bilderbeek's C++ page.

Go back to Richel Bilderbeek's homepage.

 

Valid XHTML 1.0 Strict