• <legend id='rEpbt'><style id='rEpbt'><dir id='rEpbt'><q id='rEpbt'></q></dir></style></legend>

        <bdo id='rEpbt'></bdo><ul id='rEpbt'></ul>
    1. <small id='rEpbt'></small><noframes id='rEpbt'>

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

      1. 首次编译错误时自动停止 Visual C++ 2008 构建?

        时间:2023-10-07
        <tfoot id='Z2mX5'></tfoot>

            <i id='Z2mX5'><tr id='Z2mX5'><dt id='Z2mX5'><q id='Z2mX5'><span id='Z2mX5'><b id='Z2mX5'><form id='Z2mX5'><ins id='Z2mX5'></ins><ul id='Z2mX5'></ul><sub id='Z2mX5'></sub></form><legend id='Z2mX5'></legend><bdo id='Z2mX5'><pre id='Z2mX5'><center id='Z2mX5'></center></pre></bdo></b><th id='Z2mX5'></th></span></q></dt></tr></i><div id='Z2mX5'><tfoot id='Z2mX5'></tfoot><dl id='Z2mX5'><fieldset id='Z2mX5'></fieldset></dl></div>
              <tbody id='Z2mX5'></tbody>
          1. <legend id='Z2mX5'><style id='Z2mX5'><dir id='Z2mX5'><q id='Z2mX5'></q></dir></style></legend>

            <small id='Z2mX5'></small><noframes id='Z2mX5'>

              <bdo id='Z2mX5'></bdo><ul id='Z2mX5'></ul>
                • 本文介绍了首次编译错误时自动停止 Visual C++ 2008 构建?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  我知道我可以编译单个源文件,但有时——比如,当编辑一个被许多 .cpp 文件使用的头文件时——需要重新编译多个源文件.这就是 Build 的用途.

                  I know I can compile individual source files, but sometimes -- say, when editing a header file used by many .cpp files -- multiple source files need to be recompiled. That's what Build is for.

                  VC9 (Visual C++ 2008) 中Build"命令的默认行为是尝试编译所有需要它的文件.有时这只会导致许多失败的编译.我通常只是观察错误并按 ctrl-break 手动停止构建.

                  Default behavior of the "Build" command in VC9 (Visual C++ 2008) is to attempt to compile all files that need it. Sometimes this just results in many failed compiles. I usually just watch for errors and hit ctrl-break to stop the build manually.

                  有没有办法配置它,使构建在第一次编译错误(不是第一个失败的项目构建)时自动停止?

                  Is there a way to configure it such the build stops at the very first compile error (not the first failed project build) automatically?

                  推荐答案

                  我想出了一个更好的宏家伙.它在第一个错误/秒后立即停止(更新构建窗口后立即停止).

                  I came up with a better macro guys. It stops immediately after the first error/s (soon as build window is updated).

                  Visual Studio -> 工具 -> 宏 -> 宏 IDE...(或 ALT+F11)

                  Visual Studio -> Tools -> Macros -> Macro IDE... (or ALT+F11)

                  Private Sub OutputWindowEvents_OnPaneUpdated(ByVal pPane As OutputWindowPane) Handles OutputWindowEvents.PaneUpdated
                      If Not (pPane.Name = "Build") Then Exit Sub
                  
                      pPane.TextDocument.Selection.SelectAll()
                      Dim Context As String = pPane.TextDocument.Selection.Text
                      pPane.TextDocument.Selection.EndOfDocument()
                  
                      Dim found As Integer = Context.IndexOf(": error ")
                  
                      If found > 0 Then
                          DTE.ExecuteCommand("Build.Cancel")
                      End If
                  
                  End Sub 
                  

                  希望对你们有用.

                  这篇关于首次编译错误时自动停止 Visual C++ 2008 构建?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:为什么比较 double 和 float 会导致意外结果? 下一篇:二维欧几里得矢量旋转

                  相关文章

                  最新文章

                  <small id='NJuKw'></small><noframes id='NJuKw'>

                    • <bdo id='NJuKw'></bdo><ul id='NJuKw'></ul>

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