Unable to create temporary files at compile time

I find myself more and more often when I am building a big project I get the following error.

Fatal error C1083: Cannot open compiler intermediate file: 'C: \ Temp \ SYS \ a03132ex': Permission denied

This happens in Visual Studio 2003 and VC6 and I researched the potential causes of MSDN and typed in a blank. The hard drive has enough space and there aren't many other programs open that I have to run out of handles. Any ideas, or it's time to install windows again. I'm using XP SP3, by the way, and have two large NTFS hard drives with very many files.

Edit: the name of the temp file changes and I cleared the whole c: \ temp folder.

+1


source to share


6 answers


I seem to remember from somewhere deep streak of memory that deleting the temporary files generated by visual studio for the project fixes this issue (until it reappears).



The temporary files have the same name as your project. (Maybe there might be something VC / VS in your home directory if that doesn't help.)

+1


source


And if that doesn't help, check if your TMP environment setting with semicolon is set. It should also be a full path, not a relative one.

Edit: I found an internet thread about this and it says that if you try to include a directory instead of a file, you might throw the same error.



I assume you've already checked this, but does the actual C: \ Temp \ SYS folder have the correct permissions (i.e. allow all users to read / write files to it)?

+1


source


You can also check permissions related to c:\temp

and c:\temp\sys

(if sys exists outside of compilation session)

cacls c:\temp

      

Also, (as suggested here ), try setting the -Bd compiler flag under the advanced options and check the arguments in the compiler. Perhaps you wanted to provide a path and complete the compilation of a non-existent file?

+1


source


Keep the location of the temporary file simple, for example when I copy projects from my laptop to my office PC the VS2003 project didn't compile. The "tmp" system variable pointed to% USERPROFILE% / TEMP. Visual studio 2003 was giving multiple "Fatal error C1083: Cannot open compiler intermediate file:"

I created a new Temp folder on the C drive and changed the TMP system variable to "C: / TEMP". Recompiled the program and Voilà without errors!

+1


source


do not click the Rebuild button in the compare function, click the Create button - this will solve my problem

0


source


I had exactly the same problem. Disabling the antivirus when creating the project solved this problem. A possible permanent solution would be to install the VS temporary directory in a different location and tell the antivirus to exclude that directory.

0


source







All Articles