• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 504
  • Last Modified:

c compile error (not the code either)

it looks like i have a problem compiling some code.  Not sure why this error occurs really, it has nothing to do with the code, i hope.  its not a compile error. i am asking my question here because it is c code that i am trying to compile.  here is the error that i recieve.  Oh i am using MSVC 6

fatal error C1083: Cannot open compiler intermediate file: 'C:\Temp\a02040in': No such file or directory
Error executing cl.exe.

jpegofdeath.exe - 1 error(s), 0 warning(s)
0
simongod
Asked:
simongod
1 Solution
 
cupCommented:
Try clean and rebuild.
0
 
makerpCommented:
does C:\Temp exist and do you have permissions on it/. If it is a windows NT/2000 box then check that your user account has permissions on the Temp folder, to do this look at the security tab on the properties of the folder. you should have read and write permissions.
0
 
simongodAuthor Commented:
yes i have permission and yes i cleaned and rebuilt a couple of times, still nothing
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
stsanzCommented:
Set TMPDIR environment variable to "c:\temp"
0
 
simongodAuthor Commented:
if that is set through windows then it has been done
0
 
brettmjohnsonCommented:
Make sure that the C: has sufficient disk space.  If the disk is nearly full,
there may not enough disk space to hold the temporary intermediate files
the compiler produces.

0
 
simongodAuthor Commented:
my hd has enough space like 50gig
0
 
Peter-DartonCommented:
www.sysinternals.com have a number of tools that can be used to trace what's going on, including a "filemon" which can monitor (and log) all file operations that a process carries out.
You could use that to determine what file operations MSVC is really doing and what error it is really hitting before it reports this "no such file or directory" error.
You'll have to do a fair bit of filtering to "see the wood for the trees" but it'll be in there somewhere.

Given that it's MS, have you tried removing all temp files, both in C:\TEMP and in your C project area, deleting temporary IE files, and rebooting?
Actually, you might well find that the disk isn't full, but the directory might be - it might be unable to accept any new file entries, hence a good clean up might fix it.

Are you the only user on this machine - do you have Admin privs?
0
 
simongodAuthor Commented:
yes i am the only user on this machine and i have admin rights
0
 
Peter-DartonCommented:
Then, if you haven't already, try the "nuke from orbit" approach.
Reboot.
Delete* everything in all temp directories.
Tell IE to do likewise.
Go into your MSVC project area (where your source code is) and look for temp files there - anything this isn't the project file or your source, delete it*.
Reboot.
Now tell MSVC to rebuild from scratch.

One other thing to check is virtual memory - the inability to open the file might be because it's out of memory and out of virtual memory.
On a machine with 50gig of HD space available, I'd expect the swap file to be set to occupy a minimum of 2gig (more if the machine has over 0.5gig of physical memory).
Use the performance monitor tool (built into task monitor) to watch memory usage and compare it against system totals.


* Deleting things isn't always safe.  A better method is to simply move the files somewhere else so nothing can find them anymore.  If it all goes horribly wrong, you can then move them back again, an option that is more difficult if you deleted them.  Note I don't mean "put them in the trashcan" - that isn't deleting them, it's moving them where Windows can easily find them again.
0
 
simongodAuthor Commented:
i tried the temp delete method mentioned in the previous comment and it didn't work.  could the problem be within the code?
0
 
Peter-DartonCommented:
The problem might be in the code, but the error message states otherwise.  That said, it wouldn't be the first time MS software has given a completely wrong error message for simple situations.

I presume you've tried googling?

Failing that, I'd reach for "filemon" and start tracing through what the compiler is really getting up to when you attempt to build, and thus what error conditions it is _really_ getting.
0
 
simongodAuthor Commented:
filemon? not sure how thats used, sounds like it could be the answer though or close to it
0
 
Peter-DartonCommented:
As stated earlier, www.sysinternals.com have a number of very useful (free) utilities.
Filemon is one of them.
It basically monitors all file activity on the machine, and can be set to only log a subset, e.g. everything that a single process does.
You run filemon.
You run MSVC
You tell filemon to only log MSVC's activities.
You tell filemon to clear the old log.
You tell filemon to start logging.
You tell MSVC to do the compilation that keeps failing.
You tell filemon to stop logging.
You then spend the next hour picking through the log looking for operations that failed (hint: it'll probably be near to the end, as the compilation will stop shortly after the error) until you find something that looks like an error worthy of stopping the compilation.  You then try to work out how to make that error go away.
0
 
simongodAuthor Commented:
i gave filemon a try and couldn't find the problem, i could post the log here so that i can recieve some help with it.  norton poped up and that may have been the cause for the error.  not sure why noron did.
0
 
Peter-DartonCommented:
Norton (and many other anti-virus products) are often blamed for all sorts of strange effects, and they are sometimes at fault for causing strange things.  e.g. Symantec AV + XP + Classic look + UnP&P service = missing icons (GOK why there is any connection between these disparate entities, but...).

Have you tried disabling Norton and rebuilding with it switched off?
(obviously you ensure your PC is totally isolated from any networks whilst Norton is off)

If disabling Norton doesn't fix it, post the log.  It'll be huge, but the error should be in there somewhere...
0
 
simongodAuthor Commented:
norton was the problem, i thought it would be the cause i just needed to hear it from someone else it seems.  thanks
0
 
Peter-DartonCommented:
I guess your next task, now you've got your program compiling is to find out how to configure Norton in such a way that you can leave Norton running but tell it not to interfere as much with MSVC.
I've no knowledge of Norton, so I can't help you there, but AV-products are used in many commercial companies with MSVC so it's not as if they don't have a commercial incentive to make it workable - i.e. it should be possible.
Depends on how regularly you need to create jpegofdeath.exe (not anything to do with the MS JPEG vulnerability by any chance ;-)
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now