(C++) Unable to open file 'UNITFORM\_MYFORM.OBJ'
February 24, 2017 · View on GitHub
(C++) Unable to open file 'UNITFORM_MYFORM.OBJ'
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"