简体   繁体   中英

Delphi XE2 could not create output file

Win 7 64 bit, Delphi XE2 Target 32 bit. When I switch from Debug configuration to Release, I get

[DCC Fatal Error] uADStanIntf.pas(1016): F2039 Could not create output file 'C:\Program Files (x86)\da-soft\AnyDAC for Delphi\Source\uADStanIntf.dcu'

I don't see any difference in the options settings, Library and Browsing paths are the same. The path should be

'C:\Program Files (x86)\da-soft\AnyDAC for Delphi\DCU\D16\uADStanIntf.dcu'

It looks like you are trying to compile source files from a third party library that has been installed to the program files directory, which is read only to non-administrators.

You should not be compiling source files from the program files directory, and should certainly not be outputting there. You should copy the source files to a directory inside your development tree. In other words to a directory which is writable. Obviously you'll need to update the search path.

You should also set your output directory to the default for XE2 which is:

.\$(Platform)\$(Config)

This will output to folders like Win32\\Debug when the placeholders are expanded.

Apply this setting to the all configurations target in the project options, so that it can be inherited.

Perhaps you don't want to compile these source files at all, and would prefer to use supplied .dcu files. In that case add the directory containing the .dcu files to your search path.

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