Search code examples
delphidelphi-xe2delphi-7

I/O error while compiling delphi code


I have a delphi project in a folder say MyProject. It was compiling fine. But when I changed the folder name to MyProject1 from MyProject, it gave me error "I/O Error" while compiling. How should I fix it. I just renamed the folder.


Solution

  • Okay, I caught the error. While compiling the exe file say myExe.exe, it was taking the path C:\MyProject1\myExe.exe but while linking it was taking previous path like C:\MyProject\myExe.exe. I went on Project -> Options -> Output directory. There output directory was mentioned like this: C:\MyProject but when I changed it to C:\MyProject1, it worked.