Share via


Resolving Compiler and Linker Errors

The first step in debugging is to fix language syntax errors. The Output window displays errors that prevent a program from being built and provides the file name, line number, and error number. You can copy and print information from the Output window. If the status bar appears, it gives a summary of the current error.

If you don’t understand an error message, move the insertion point to the error number and press the F1key (in the default keyboard mapping) to display online information about it.

To move through the list of errors

  • In the Output window, double-click the error, or select the error and press ENTER.

    – or –

    Click the right mouse button in the Output window, and click Go To Error/Tag from the shortcut menu.

    – or –

    Press F4 (in the default keyboard mapping) to select the next error.

    – or –

    Press SHIFT+F4 (in the default keyboard mapping) to select the preceding error.

    As each error is selected in the Output window, the corresponding line containing the error is selected in the source window.

To move to a specific line in a source file

  1. From the Edit menu, click Go To.

    The Go To dialog box appears.

  2. In the Line Number box, type a line number.

  3. Click Go To.

    If you type a line number greater than the last line in your source file, the editor moves to the end of the file.