c++ - 在 Visual Studio 2013 中运行程序时出错

标签 c++

尝试在 Visual Studio 2013 C++ 中运行程序时,我遇到了这些问题。我知道代码没问题,但每次都会发生这种情况。

Error 1 错误:本次编译的源文件位于:

"C:\Users\Łukasz\AppData\Local\Temp\4fac5eed-ed73-4dda-8bdc-c333e2e82b4c.txt" C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\CodeAnalysis\Microsoft.CodeAnalysis.targets

错误 2

error MSB3758: An error has occurred during compilation. error CS0016: Could not write to output file 'c:\Users\Łukasz\AppData\Local\Temp\dtlusbnh.dll' -- 'Access is denied. ' C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\CodeAnalysis\Microsoft.CodeAnalysis.targets

错误 3

error MSB4036: The "SetEnvironmentVariable" task was not found. Check the following: 1.) The name of the task in the project file is the same as the name of the task class. 2.) The task class is "public" and implements the Microsoft.Build.Framework.ITask interface. 3.) The task is correctly declared with in the project file, or in the *.tasks files located in the "C:\Program Files (x86)\MSBuild\12.0\bin" directory. C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\CodeAnalysis\Microsoft.CodeAnalysis.targets

最佳答案

Could not write to output file

错误信息表示文件正在使用中。

因为它是一个 DLL,它被一些程序或程序使用。

您需要终止这些进程。

关于c++ - 在 Visual Studio 2013 中运行程序时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27746642/

相关文章:

c++ - ROS:将回调函数和对象成员绑定(bind)到订阅者节点

c++ - Mac/IOS 是否使用与 Linux 内核相同的 sys/socket.h?

c++ - vector::iterator 和 set::iterator 的原理区别

c++ - 使用 gSOAP 解析 soap 消息

c++ - Linux串口通信异常?

c++ - BST 以 2d 数组作为节点结构中的键而不是 int

c++ - 使用自定义函数对象比较器 C++ 设置

c++ - 将返回类型专门化为 void 或 const 左值引用

c++ - 如何在 vector 队列或 vector vector 上使用 std::async 进行排序?

c++ - 并发无锁单链表 C++ : does concurrency affect the interface? 迭代器仍然有意义吗?