User Name Password Register
DaniWeb IT Discussion Community
All
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
Reply
Join Date: Jul 2008
Posts: 37
Reputation: plike922 is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
plike922's Avatar
plike922 plike922 is offline Offline
Light Poster

Do i need a better compiler?

  #1  
Jul 23rd, 2008
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?
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Sep 2004
Posts: 6,325
Reputation: Narue has much to be proud of Narue has much to be proud of Narue has much to be proud of Narue has much to be proud of Narue has much to be proud of Narue has much to be proud of Narue has much to be proud of Narue has much to be proud of Narue has much to be proud of 
Rep Power: 28
Solved Threads: 458
Super Moderator
Narue's Avatar
Narue Narue is offline Offline
Expert Meanie

Re: Do i need a better compiler?

  #2  
Jul 23rd, 2008
That usually happens to me when I forget to close the output window for a debug run.
I'm a programmer. My attitude starts with arrogance, holds steady at condescension, and ends with hostility. Get used to it.
Reply With Quote  
Join Date: Jul 2008
Posts: 37
Reputation: plike922 is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
plike922's Avatar
plike922 plike922 is offline Offline
Light Poster

Re: Do i need a better compiler?

  #3  
Jul 23rd, 2008
No but it is closed i even look with ctrl alt delete, it not running.
Reply With Quote  
Join Date: Dec 2005
Posts: 3,638
Reputation: Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of 
Rep Power: 22
Solved Threads: 418
Colleague
Salem's Avatar
Salem Salem is offline Offline
void main'ers are DOOMed

Re: Do i need a better compiler?

  #4  
Jul 23rd, 2008
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.
Reply With Quote  
Join Date: Dec 2006
Posts: 232
Reputation: ssharish2005 is on a distinguished road 
Rep Power: 2
Solved Threads: 18
ssharish2005's Avatar
ssharish2005 ssharish2005 is offline Offline
Posting Whiz in Training

Re: Do i need a better compiler?

  #5  
Jul 23rd, 2008
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
Last edited by ssharish2005 : Jul 23rd, 2008 at 9:36 pm.
Reply With Quote  
Join Date: Jul 2008
Posts: 37
Reputation: plike922 is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
plike922's Avatar
plike922 plike922 is offline Offline
Light Poster

Re: Do i need a better compiler?

  #6  
Jul 24th, 2008
Thanks for the help! but it is still annoying closing the window.
_________________________
||||||||||[][][]|||||||||||||||||||
|||||||||||||||____|
||||||||||
||||||||||
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb C Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the C Forum

All times are GMT -4. The time now is 6:58 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC