<i id='6sw0r'><tr id='6sw0r'><dt id='6sw0r'><q id='6sw0r'><span id='6sw0r'><b id='6sw0r'><form id='6sw0r'><ins id='6sw0r'></ins><ul id='6sw0r'></ul><sub id='6sw0r'></sub></form><legend id='6sw0r'></legend><bdo id='6sw0r'><pre id='6sw0r'><center id='6sw0r'></center></pre></bdo></b><th id='6sw0r'></th></span></q></dt></tr></i><div id='6sw0r'><tfoot id='6sw0r'></tfoot><dl id='6sw0r'><fieldset id='6sw0r'></fieldset></dl></div>

    • <bdo id='6sw0r'></bdo><ul id='6sw0r'></ul>
    <tfoot id='6sw0r'></tfoot>

    1. <legend id='6sw0r'><style id='6sw0r'><dir id='6sw0r'><q id='6sw0r'></q></dir></style></legend>

      1. <small id='6sw0r'></small><noframes id='6sw0r'>

        无法打开输出文件,权限被拒绝

        Cannot open output file, permission denied(无法打开输出文件,权限被拒绝)
          <i id='9KbO8'><tr id='9KbO8'><dt id='9KbO8'><q id='9KbO8'><span id='9KbO8'><b id='9KbO8'><form id='9KbO8'><ins id='9KbO8'></ins><ul id='9KbO8'></ul><sub id='9KbO8'></sub></form><legend id='9KbO8'></legend><bdo id='9KbO8'><pre id='9KbO8'><center id='9KbO8'></center></pre></bdo></b><th id='9KbO8'></th></span></q></dt></tr></i><div id='9KbO8'><tfoot id='9KbO8'></tfoot><dl id='9KbO8'><fieldset id='9KbO8'></fieldset></dl></div>

        • <legend id='9KbO8'><style id='9KbO8'><dir id='9KbO8'><q id='9KbO8'></q></dir></style></legend>

            <small id='9KbO8'></small><noframes id='9KbO8'>

              <tbody id='9KbO8'></tbody>
            <tfoot id='9KbO8'></tfoot>
                <bdo id='9KbO8'></bdo><ul id='9KbO8'></ul>

                1. 本文介绍了无法打开输出文件,权限被拒绝的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  所以我在尝试使用 CodeBlocks 编译 C++ 代码时不断收到此错误.

                  So I keep getting this error when trying to compile C++ code using CodeBlocks.

                  无法打开输出文件 [filename.exe] 权限被拒绝

                  cannot open output file [filename.exe] permission denied

                  它今天才开始,而且是零星的和不一致的.如果我关闭 CodeBlocks 并重新启动项目,它通常会消失,但并非总是如此.有时,当我多次按 F9(构建和运行)时,它甚至会消失.我总是检查任务管理器,但从来没有任何 .EXE 以我的文件名或与之相关的任何内容运行.

                  It only started today, and it's sporadic and inconsistent. It usually goes away if I shut CodeBlocks down and restart the project, but not always. Sometimes it even goes away when I just press F9 (build & run) several times. I always check Task Manager, but there are never any .EXEs running with my file's name, or anything related to it.

                  我还注意到,如果出现此问题,然后我尝试手动删除 .EXE 或以其他方式与之交互,Windows 会告诉我我需要管理员权限才能这样做(这是一台私人 PC,就我知道我是它的管理员).

                  I've also noticed that if this problem occurs and I then try to delete the .EXE manually or otherwise interact with it, Windows tells me I need administrator permission to do so (this is a private PC, and as far as I know I am an administrator on it).

                  第一次发生时,我在代码中添加的唯一内容是发送给 cout 的调试报告——几乎没有什么神秘的东西.有时即使没有更改以前版本的代码也会发生这种情况.

                  The first time it occurred, the only thing I had added to the code beyond what was in the previous version was a debugging report sent to cout - hardly anything arcane. It sometimes occurs even when no code was changed from a previous version.

                  这会是什么?这还没有破坏游戏规则,但很烦人,我宁愿它不要变得更糟.

                  What could this be? It's not game-breaking, yet, but it's irritating and I'd rather it didn't get worse.

                  这已经很旧了,但以防万一其他人遇到类似问题,我目前使用的解决方法只是在尝试再次运行代码之前始终删除 [filename.exe].这避免了这个问题,尽管它很烦人.

                  This is old by now, but just in case anyone else is having similar problems, the workaround I currently use is just to consistently delete [filename.exe] before trying to run the code again. This avoids the problem, though it is annoying.

                  推荐答案

                  检查filename.exe"没有运行,我猜您使用的是 Microsoft Windows,在这种情况下,您可以使用任务管理器或进程资源管理器:http://technet.microsoft.com/en-us/sysinternals/bb896653在尝试生成它之前杀死filename.exe".

                  check that "filename.exe" is not running, I guess you are using Microsoft Windows, in that case you can use either Task Manager or Process Explorer : http://technet.microsoft.com/en-us/sysinternals/bb896653 to kill "filename.exe" before trying to generate it.

                  这篇关于无法打开输出文件,权限被拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Is Type(::x); valid?(是类型(::x);有效的?)
                  Difference between an inline function and static inline function(内联函数和静态内联函数的区别)
                  Compilation fails randomly: quot;cannot open program databasequot;(编译随机失败:“无法打开程序数据库)
                  Too many initializers error for a simple array in bcc32(bcc32 中的简单数组的初始值设定项过多错误)
                  No Member named stoi in namespace std(命名空间 std 中没有名为 stoi 的成员)
                  Error using a constexpr as a template parameter within the same class(在同一个类中使用 constexpr 作为模板参数时出错)
                    <bdo id='GvzAU'></bdo><ul id='GvzAU'></ul>

                            <tbody id='GvzAU'></tbody>

                        1. <small id='GvzAU'></small><noframes id='GvzAU'>

                          <i id='GvzAU'><tr id='GvzAU'><dt id='GvzAU'><q id='GvzAU'><span id='GvzAU'><b id='GvzAU'><form id='GvzAU'><ins id='GvzAU'></ins><ul id='GvzAU'></ul><sub id='GvzAU'></sub></form><legend id='GvzAU'></legend><bdo id='GvzAU'><pre id='GvzAU'><center id='GvzAU'></center></pre></bdo></b><th id='GvzAU'></th></span></q></dt></tr></i><div id='GvzAU'><tfoot id='GvzAU'></tfoot><dl id='GvzAU'><fieldset id='GvzAU'></fieldset></dl></div>
                          <tfoot id='GvzAU'></tfoot>

                          1. <legend id='GvzAU'><style id='GvzAU'><dir id='GvzAU'><q id='GvzAU'></q></dir></style></legend>