•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the C section within the Software Development category of DaniWeb, a massive community of 426,790 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 1,757 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C advertiser: Programming Forums
Views: 299 | Replies: 5 | Solved
![]() |
I am having a problem when i compile a program. What happens is that i would compile program, run it, see a problem, fix it, then try to compile it again and i get LINK : fatal error LNK1168: cannot open C:\Documents and Settings\Eric 22\Desktop\Exercises\celsFahr\Debug\celsFahr.exe(example file) for writing. I don't know why. The only way to fix it is to restart my computer and only compile and run it once until i have to restart it again. I am using Microsoft Visual C++ 2005 Express Edition. Is it the compiler or an other problem? Any answers?
Use process explorer from www.sysinternals.com to search for the exe to see what other programs (say virus scanner) may have some kind of access to the file which is preventing you writing to it.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
Do not PM me for help; You'll be ignored, or told to learn to read.
Do not ask me if I'm muslim - I'm not. Nor do I care about yours or anyone else's mysticism. Religion is a matrix, take the RED PILL.
Do not PM me for help; You'll be ignored, or told to learn to read.
Do not ask me if I'm muslim - I'm not. Nor do I care about yours or anyone else's mysticism. Religion is a matrix, take the RED PILL.
I don’t have much to say, b’cos most of the clues on why this happened has been already pointed out. But the main cause for this problem is when you run the code once and then try running it once again or compile or rebuilt it. You might have to make sure that the program has exited properly. Use the processor explores windows to check if the process is still running.
You might be doing something wrong in your code may be. See if you your program exits properly. Salems link for processor explore is a very good tools to check to make sure if there are any other process having of your code file etc.
On my research it seems that, this is a known issue which the VS team is already aware of. Got this information from the following link? But still make sure that by disabling all antivirus software and run it again.
http://connect.live.com/VisualStudio...dbackID=292259
You might find this link useful as well.
http://support.microsoft.com/kb/308358
ssharish
You might be doing something wrong in your code may be. See if you your program exits properly. Salems link for processor explore is a very good tools to check to make sure if there are any other process having of your code file etc.
On my research it seems that, this is a known issue which the VS team is already aware of. Got this information from the following link? But still make sure that by disabling all antivirus software and run it again.
http://connect.live.com/VisualStudio...dbackID=292259
You might find this link useful as well.
http://support.microsoft.com/kb/308358
ssharish
Last edited by ssharish2005 : Jul 23rd, 2008 at 9:36 pm.
![]() |
•
•
•
•
•
•
•
•
DaniWeb C Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Similar Threads
- C++ Compiler??? (C++)
- C compiler... Man I feel lame (*nix Software)
- compiler (C++)
- ?'s, JPG, Free Store and Compiler Synthesis (C)
Other Threads in the C Forum
- Previous Thread: Sorting strings - segmentation fault
- Next Thread: help needed to compute maclaurin series using c



Linear Mode