# Errors saying "Unable to rename tmp files" when creating/compiling new c++ class

**URL:** <https://forums.unrealengine.com/t/errors-saying-unable-to-rename-tmp-files-when-creating-compiling-new-c-class/490572>\
**Category:** C++\
**Tags:** error, rename, unreal-engine, question\
**Created:** [November 4, 2021, 1:33am UTC](https://forums.unrealengine.com/t/errors-saying-unable-to-rename-tmp-files-when-creating-compiling-new-c-class/490572 "2021-11-04T01:33:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![PauloAce261](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PauloAce261](https://forums.unrealengine.com/u/PauloAce261)\
**Post date:** [November 4, 2021, 1:33am UTC](https://forums.unrealengine.com/t/errors-saying-unable-to-rename-tmp-files-when-creating-compiling-new-c-class/490572/1 "2021-11-04T01:33:54Z")

</div>

Trying to create a new c++ class and comes up with the errors:

“ERROR: Unable to rename C:\Users\username\Documents\foldername\projectname\Intermediate\Build\Win64\UE4Editor\Development\projectname\projectname.cpp.txt.tmp to C:\Users\username\Documents\foldername\projectname\Intermediate\Build\Win64\UE4Editor\Development\projectname\projectname.cpp.txt”

and that is repeated for files names called:  
projectnameGameModeBase.cpp  
projectname.init.gen.cpp  
projectnameGameModeBase.gen.cpp

I’ve tried looking into the following solutions I’ve seen:

- delete the tmp files (doesn’t work as they just come back)
- look into permissions (not the issue)
- Changed antivirus to accept ue4 (not worked)
- Turn off anitvirus (not worked)

Any ideas?
