Compile error: unable to rename file

Hello, wondering if you can help me with a compiler error.

I managed to open the game file in VS 2022 without a problem, but when I save the “Hi there” in the code, and try to compile it, the compile fails. The log says it cannot rename a certain file:

[2022.01.02-02.43.22:142][323]CompilerResultsLog: Building 4 actions with 8 processes...
[2022.01.02-02.43.22:142][323]CompilerResultsLog:   [1/4] BullCowCartridge.cpp
[2022.01.02-02.43.22:142][323]CompilerResultsLog:   ERROR: Unable to rename C:\Users\james\Desktop\CPP\BullCow\BullCowGame-starter-kit\Intermediate\Build\Win64\UE4Editor\Development\BullCowGame\BullCowCartridge.cpp.txt.tmp to C:\Users\james\Desktop\CPP\BullCow\BullCowGame-starter-kit\Intermediate\Build\Win64\UE4Editor\Development\BullCowGame\BullCowCartridge.cpp.txt

What would be the solution here?

Thank you!

J

*Edit Solved!

The issue was that it couldn’t be written because for some reason there was already a file with that extension present. If you manually delete the file (with the .txt ending), the compiled should be able to write the .txt.tmp file to .txt

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms