News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

LINK : fatal error LNK1104: cannot open file

Started by herge, March 07, 2009, 11:52:57 AM

Previous topic - Next topic

herge


Hi All:

I have been having problems with link it can not
open the EXE file. I am begiining to think it's
not the linker is screwing up but it's DOS
not likeing to many files in the directory.
If I move the source file to a new directory,
the same file compiles and runs okay.

LINK : fatal error LNK1104: cannot open file "flags.exe"

I even checked windows task manager in case the EXE
was actually still running.

Is there some limit to directory entries I have 592
entries in c:\masm32\bin

Has any one else had similiar problems?

Regards herge
// Herge born  Brussels, Belgium May 22, 1907
// Died March 3, 1983
// Cartoonist of Tintin and Snowy

FORTRANS

Hello,

   DOS/Windows should not have any problem with the number
of files in a subdirectory.  I have thousands in some.  In the
root directory there can be limits (with FAT).  LINK needs to
write to your "flags.exe" file, so checking that it is not still
running is good.  It could exist as a read-only file, or Windows,
or a anti-virus, could think it exists, and should not be written
to.

HTH,

Steve N.

ToutEnMasm


This mean that the executable file is always running in memory.
Use the task manager ("Alt ctrl delet" or "Alt ctrl suppr" key ) to see if the program is always running.His name appear in the list of files.If it is,select it and "terminate" or "terminer le processus" button.

herge


Hi  ToutEnMasm:

I have finally figured it out I had multply EXE running with
the same name. I had to end process [Windows Task Manager]
of ALL the running EXEs.  You can Not delete a running EXE.
You usually get:


C:\masm32\bin>del flag.exe
C:\masm32\bin\flag.exe
Access is denied.


  Thanks for your help. This would explain why
  I had problems with the DOS attrib command.

Regards herge

 
// Herge born  Brussels, Belgium May 22, 1907
// Died March 3, 1983
// Cartoonist of Tintin and Snowy

raymond

I occasionally get that same message when I'm debuging a program and I try to reassemble the source code with some modifications before terminating the program in the debugger!! :red
When you assume something, you risk being wrong half the time
http://www.ray.masmcode.com

UtillMasm