Some advice please.
With older versions of Delphi it was possible to create a unit file and after compiling it to .DCU delete the .pas file.
Then one can continue to use the "objects" as created in the deleted pas file.
With the newer versions if I delete the pas file the application does not want to compile and gives me the following error:
[dcc32 Fatal Error] xxxxx.pas(7): F2063 Could not compile used unit 'xxx.pas'
I do not want to "recompile" the DCU.
Compile after deleting additional .PAS file
-
- Posts: 1
- Joined: Thu May 28, 2015 8:54 am
- Location: South Africa
- Contact:
Your problem may have to do with the build paths.
In older versions of Delphi the .dcu were put right next to, in the same directory as the .pas file.
Now, by default the .dcu files are put in the Win32/Debug or a similar build directory.
I did and experiment and moved the .dcu file to the the same directory as the deleted .pas file were located and then it compiled for me, just like in older versions of Delphi.
In older versions of Delphi the .dcu were put right next to, in the same directory as the .pas file.
Now, by default the .dcu files are put in the Win32/Debug or a similar build directory.
I did and experiment and moved the .dcu file to the the same directory as the deleted .pas file were located and then it compiled for me, just like in older versions of Delphi.
-
- Site Admin
- Posts: 17522
- Joined: Sat Aug 27, 2005 10:28 am
- Contact: