vc2015安装后的几个问题

来源:互联网 发布:西南交大希望学院网络 编辑:程序博客网 时间:2024/05/08 22:01

前言

    最近在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.


properties->vc++ directories->executable directories 

C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin

2.Can't open source : iostream

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

#include <sstream>


4.warning C4172: returning address of local variable or temporary: tmp  LINK : fatal error LNK1104: cannot open file 'MSVCRTD.lib'

properties->vc++ directories->library directories 

C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\lib