F2039
Delphi Programming Language
Severity: MinorWhat it means
The message: F2039 Could not create output file, followed by the file's name.
Embarcadero: the compiler couldn't create an output file. That can be a compiled unit (.dcu), an executable, a map file or an object file.
The most likely causes are a folder that doesn't exist, or a write-protected file or disk.
Affected Models
- The Delphi compiler, in RAD Studio and Delphi
How to Fix It
-
Is the program still running? Close it, or stop the debugger with Run > Program Reset (Ctrl+F2), then build again.
Embarcadero: another process may have locked the .exe. In debug mode, the debugger usually does.
-
Check the output folder exists. The paths are in Project > Options > Delphi Compiler: Output directory and Unit output directory.
-
Check you may write there. The file mustn't be read-only, the source mustn't be on a read-only drive, and your account needs write permission for the folder.
-
Still failing? Embarcadero says the linker can fail here too, when it finds unexpected versions of .dcu, .bpl or .dcp files. Run Project > Clean, then build again.