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

后端 未结 9 1702
刺人心
刺人心 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条回答
  •  萌比男神i
    2020-12-31 05:21

    This error occured to me with C++ code with visual studio 2019 because I did not initialize my for-loop correctly.

    I did:

    for (int m; m < bytewidths + 1; m++) {}

    rather than

    for (int m=0; m < bytewidths + 1; m++) {}

    I think that the way to fix this problem is to solve your recent code manually

提交回复
热议问题