Thread: Cannot open debug/filename.exe for writing

  1. #1
    Shadow12345
    Guest

    Cannot open debug/filename.exe for writing

    --------------------Configuration: this works - Win32 Debug--------------------
    Compiling...
    thisworks main.cpp
    Linking...
    LINK : fatal error LNK1168: cannot open Debug/this works.exe for writing
    Error executing link.exe.

    this works.exe - 1 error(s), 0 warning(s)



    As soon as I change the source code it does that. Any simple explanation as to why?

  2. #2
    aurė entuluva! mithrandir's Avatar
    Join Date
    Aug 2001
    Posts
    1,209
    "fatal error LNK1168: cannot open Debug/Test_compiler_errors.exe for writing Error executing link.exe.
    There are two possible causes for this error. Either you have defined your project on a diskette (which would not be big enough to hold a project) or a copy of your application is still running. To solve the first problem, create your projects on the hard disk and your source files on diskette. To solve the second problem, quit the running application (Press any key to continue..)"

    http://faculty.capitol-college.edu/j...ler_Errors.htm
    Hope this helps.

  3. #3
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    Usually its because your prog has killed its window but is still doing something...its most likely an error in your code

    Try CTR-ALT-DEL and see if the name of your prog is there....if so..kill the process and go back to your code

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Open Source Licenses
    By Mario F. in forum A Brief History of Cprogramming.com
    Replies: 9
    Last Post: 10-10-2006, 08:53 PM
  2. Big help in Astar search code...
    By alvifarooq in forum C++ Programming
    Replies: 6
    Last Post: 09-24-2004, 11:38 AM
  3. Unknown Memory Leak in Init() Function
    By CodeHacker in forum Windows Programming
    Replies: 3
    Last Post: 07-09-2004, 09:54 AM
  4. Problems with open and save boxes
    By pinkcheese in forum Windows Programming
    Replies: 3
    Last Post: 05-21-2002, 06:03 PM
  5. Ghost in the CD Drive
    By Natase in forum A Brief History of Cprogramming.com
    Replies: 17
    Last Post: 10-12-2001, 05:38 PM