error MSB6006: “CL.exe” exited with code 2

后端 未结 9 1715
刺人心
刺人心 2020-12-31 04:42

I\'m writing with visual c++ and when I compile this error occures:

C:\\Program Files (x86)\\MSBuild\\Microsoft.Cpp\\v4.0\\Platforms\\Win32\\Microsoft.Cpp.Wi         


        
9条回答
  •  孤独总比滥情好
    2020-12-31 05:36

    Could also be an actually deleted header or source file, still listed in your project. Just check for such files.

    I deleted a Header and Source file using the system explorer. VS apparently doesn't recognize the absence of deleted files and tries to compile them, till you reload your project.

    Reloading the project worked for me.

提交回复
热议问题