简体   繁体   中英

C++ Builder 10.2.3 [ilink32 Error] Fatal: Unable to open file 'FORMS.OBJ'

I am converting a large project from Borland C++ Builder 6 to Embarcadero C++ Builder 10.2.3 and get the error

[ilink32 Error] Fatal: Unable to open file 'FORMS.OBJ'

When I'm converting. I created a new project then added all the original source files to the new project and converted all form related includes to the new vcl includes. As far as I can tell "FORMS.OBJ" is not referenced anywhere in the source code. I'm looking for any ideas on what to try or look for next.

A library file was not updated and was looking for FORMS.OBJ. When the file was removed and all references to the library were removed, there were no more linker errors.

I find RAD Studio muuuch stable when working under Delphi personality compared with the C++ personality.

How to fix the problem mentioned above: make sure the FrameworkType is set to VCL instead of None. I have found mine set to "none":

<FrameworkType>VCL</FrameworkType>   

Then I have seen that the IDE tend to f***** also this entry:

<AppType>Package</AppType>

The last bug. The IDE forgot to add this entry:

    <PackageImport Include="vcl.bpi">
        <BuildOrder>4</BuildOrder>
    </PackageImport>

Locate the PackageImport Include="rtl.bpi" entry and put it under it.
Delete "Win32", restart the IDE and rebuild (also, use 2-3 drops of holly water if necessary). After this the IDE should not complain anymore.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM