VC++ fatal error LNK1168: cannot open filename.exe for writing

前端 未结 12 1860
悲&欢浪女
悲&欢浪女 2020-12-01 03:38

suddenly my visual studio express 2010 c++ stopped rebuilding my project.
When I first hit F7 the project builds and runs fine (heck, it\'s a hello world example).
T

12条回答
  •  自闭症患者
    2020-12-01 04:17

    I know this is an old question but thought I'd share how I resolved the issue.

    If you're using Visual Studio and this error occurs, you can try to attach to process (CTRL+ALT+P) and find the "(program).exe" process. When you try to attach to it, an error will display stating that it failed to attach which removes the process from "running" (even though it's not...) You'll also be able to delete the (program).exe from your Debug folder.

    Hope this helps someone! :)

提交回复
热议问题