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

后端 未结 9 1642
刺人心
刺人心 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:33

    This happened me for a variety of different reasons:

    1) I forgot to add a return statement to a non-void function.

    2) I tried to use an uninitialized pointer.

    3) I wrote a loop like for(int i=i;...) instead of for(int i=0;...)

    You can check your code for these and it may help.

提交回复
热议问题