This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

unable to rename, file exists during compile

OS: Windows 7 64-bit, Service Pack 1

CCS: v 6.1.0.00104 

During compile across many projects I intermittently get a compile error.

error: unable to rename C:\Users\MY.USER\AppData\Local\Temp\018002 to
Application\\board_key.obj: File exists

The .obj file called out is not consistent nor is the temp file, they vary.  If I do a clean and a rebuild I may get the error again or I may not.  If I get the error again it might be a different file or everything might compile cleanly.

I would consider this error more annoying than anything as i can rebuild and sometimes get past it although its frequency appears to be dependent on how many files are being compiled so it looks like it occurs more frequently on my larger projects.

Any thoughts or ideas would be appreciated.

  • Hi,

    I was searching around on the internet and found this also happened to standard Eclipse/CDT users - however, I could not find anything conclusive about this issue. Some reported a restart made the problem disappear, while others suggested to do a manual clean before building the project, or even version control getting in the way of the obj files.

    Given it happens intermittently, that only makes the issue worse to be tracked down. Unfortunately at this point I can't do much other than keep an eye on this and report back if I find something in addition.

    Hopefully others may chime in with additional insights.

    Hope this helps,
    Rafael