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.
source to share
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.)
source to share
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)?
source to share
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?
source to share
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!
source to share