Visual C++

Moderators: Lundin
Number of threads: 379
Number of posts: 695

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Visual Studio 2008 again. Posted by toddlerasim on 2 Oct 2008 at 12:23 AM
Why does VS2008 display this error despite a successful compilation of code..

Error 1 fatal error LNK1105: cannot close file 'd:\vs2008\win32project\Debug\win32project.exe' win32project win32project


How does one close the EXE file to avoid this error being generated?
Report
Re: Visual Studio 2008 again. Posted by Malcolm_McLean on 2 Oct 2008 at 9:38 AM
: Why does VS2008 display this error despite a successful compilation
: of code..
:
: Error 1 fatal error LNK1105: cannot close file
: 'd:\vs2008\win32project\Debug\win32project.exe' win32project win32pro
: ject
:
:
: How does one close the EXE file to avoid this error being generated?
:
Clean out your debug directory, reboot the machine, and try again.

It could be either a version of the program still running in the background, or something funny with an existing file in the directory.
It is unlikely to be a common internal error that means you can never write an executable, or Microsoft would have caught it early on.


Report
Re: Visual Studio 2008 again. Posted by toddlerasim on 4 Oct 2008 at 9:01 AM
: : Why does VS2008 display this error despite a successful compilation
: : of code..
: :
: : Error 1 fatal error LNK1105: cannot close file
: : 'd:\vs2008\win32project\Debug\win32project.exe' win32project win32pro
: : ject
: :
: :
: : How does one close the EXE file to avoid this error being generated?
: :
: Clean out your debug directory, reboot the machine, and try again.
:
: It could be either a version of the program still running in the
: background, or something funny with an existing file in the
: directory.
: It is unlikely to be a common internal error that means you can
: never write an executable, or Microsoft would have caught it early
: on.
:
:
:
:I wish that were a version of the program still running in the background but it doesn't seem to be so. This happens irrespective of whether I have written a console application or a Win32 one. I am confident that this is no internal error but rather something happening at my end. I cannot even run the program using Ctrl + F5 without this error being generated. To still manage to run an EXE I have to first Rebuild the project and then go in for Ctrl+F5. Rather annoying hence this post. Hope somebody can clear this mess for me.
Report
Re: Visual Studio 2008 again. Posted by AsmGuru62 on 12 Nov 2008 at 4:58 AM
: : : Why does VS2008 display this error despite a successful compilation
: : : of code..
: : :
: : : Error 1 fatal error LNK1105: cannot close file
: : : 'd:\vs2008\win32project\Debug\win32project.exe' win32project win32pro
: : : ject
: : :
: : :
: : : How does one close the EXE file to avoid this error being generated?
: : :
: : Clean out your debug directory, reboot the machine, and try again.
: :
: : It could be either a version of the program still running in the
: : background, or something funny with an existing file in the
: : directory.
: : It is unlikely to be a common internal error that means you can
: : never write an executable, or Microsoft would have caught it early
: : on.
: :
: :
: :
: :I wish that were a version of the program still running in the
: background but it doesn't seem to be so. This happens irrespective
: of whether I have written a console application or a Win32 one. I am
: confident that this is no internal error but rather something
: happening at my end. I cannot even run the program using Ctrl + F5
: without this error being generated. To still manage to run an EXE I
: have to first Rebuild the project and then go in for Ctrl+F5.
: Rather annoying hence this post. Hope somebody can clear this mess
: for me.

Usually Google for an error code. If you do it using "LNK1105" - you get this:

http://msdn.microsoft.com/en-us/library/80z106bx.aspx

Seems unconnected... how does inability to close a file affected by a disk full condition?!! but check it anyway.



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.