mihai
mihai

Reputation: 4722

Cannot create the exe file (LNK1104 cannot open file)

I'm following the steps from Getting Started with MASM and Visual Studio 2012 but I keep getting the following link error:

LNK1104: cannot open file 'D:\...\Project_sample\Debug\ASM_Project.exe'

I've tried putting the project on different paths and running VS as admin, making the Debug directory writable, making sure the app is not running (this is the first compile, so it didn't even exist). I do get the object file in the Debug directory, the PDB and the log file, but not the exe.

Upvotes: 1

Views: 740

Answers (1)

mihai
mihai

Reputation: 4722

The antivirus (Avira) was blocking the .exe file. Adding the Debug path to the list of excluded directories solved the problem.

Upvotes: 4

Related Questions