前言
最近在win7下重新安装了visual studio 2015,没有安装在默认路径下,编译时出现不少问题,整理如下
1.Failed to locate: "CL.exe". The system cannot find the file specified.
TRACKER : error TRK0005: Failed to locate: “CL.exe”. The system cannot find the file specified.
ANS:properties->vc++ directories->executable directories
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin
2.Can't open source : iostream
ANS:properties->vc++ directories->include directories
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include
3.error C3861: 'to_string': identifier not found note: see declaration of 'std' error C2039: 'to_string': is not a member of 'std
ANS:#include <sstream>
4.warning C4172: returning address of local variable or temporary: tmp LINK : fatal error LNK1104: cannot open file 'MSVCRTD.lib'
ANS:properties->vc++ directories->library directories
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\lib