无法在非默认目录中构建项目 [英] Can't build a project in a non-default directory

查看:111
本文介绍了无法在非默认目录中构建项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我在VS 2013社区版中创建了一个新的C ++控制台项目,并将其保存到默认目录之外的其他目录中,则将不会生成该目录.如果尝试构建现有的VC ++ 2013项目,也是如此.我得到:

If I create a new C++ console project in VS 2013 community edition, and save it to a directory other than the default, it will not build. Same if I try to build an existing VC++ 2013 project. I get:

1>  stdafx.cpp
1>e:\visual studio 2013\projects\advanced_templates\t_function_overloads\stdafx.cpp(9): fatal error C1001: An internal error has occurred in the compiler.
1>  (compiler file 'msc1.cpp', line 1325)
1>   To work around this problem, try simplifying or changing the program near the locations listed above.
1>  Please choose the Technical Support command on the Visual C++ 
1>   Help menu, or open the Technical Support help file for more information
1>  INTERNAL COMPILER ERROR in 'C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\CL.exe'
1>      Please choose the Technical Support command on the Visual C++
1>      Help menu, or open the Technical Support help file for more information
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

我尝试在选项>中更改默认项目位置.项目和解决方案一般,但这没什么区别.

要使其与我选择的目录中的项目一起使用,您需要做什么?

I tried changing the default project location in Options > Projects and Solutions > General but this made no difference.

What do you have to do to get it to work with projects in a directory of my choosing?

推荐答案

I我不确定何时启动,但在W8.1中"Program Files"文件夹是只读的.

 I'm not sure when it started but in W8.1 the Program Files folders are read only. 

只需单击它并检查.


这篇关于无法在非默认目录中构建项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆