Cannot compile project in Win64 Release mode, just Debug mode

I upgraded to Delphi Rio (10.3) and installed the corresponding DOA release, but when I try to recompile a project (Win64/Release) it fails:

[dcc64 Fatal Error] DM_DOA.pas(6): Bad unit format: 'C:\Program Files (x86)\Embarcadero\Studio\20.0\DOA\OracleData.dcu' - Expected version: 33.0, Windows Unicode(x64) Found version: 33.0, Windows Unicode(x86)

DM_DOA.pas is a simple datamodule unit with various DOA components. I'm trying a full rebuild here and there are no other third-party sources in the project.

Strange thing is the project compiles just fine if:
- Set as Win32, Debug o Release
- Set as Win64, Debug only

... but I need it in Win64 Release mode!

I've successfully recompiled other DOA projects in Win64 Release mode, just this one is failing... What should I do or change in the project itself?
 
Well, I just deleted the .DPROJ and the rest of the binaries (DCUs, RSM) and loaded the .DPR. That makes Delphi to rebuild the .DPROJ file with the bare minimum contents.

Once loaded, I added the Win64 platform, set the Release mode and the project compiles right away, no errors.
 
Last edited:
Back
Top