c++visual-studiocompiler-errorsxtensor

MSB6006 error when code used to work fine in visual studio C++


I'm getting the 'MSB6006 "CL.exe" exited with code 2' error. The problem is that my code used to work fine. The issue came when I tried to add another library from xtensor (the xtensor-blas) and I couldn't get it to work correctly. I just erased everything I tried to add and get a clean run, but it now fails every time.

While trying to compile the Error List says things like "C1083 fatal error: cannot open source file: 'files that I have deleted'". Whenever I stop the build, it then only gives the MSB6006 error.

It has become extremely frustrating since my code is identical to what it used to be and now doesn't work.

Is there any way around this?


Solution

  • Answer given by Quentin: There may still be references in the vcxproj file created by Visual Studio. Delete those references and it should work.