Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-32502

Navigation to linker errors from Issues pane is sub-optimal

    XMLWordPrintable

Details

    • Linux/Wayland
    • 4243c09a8 (master), b14e371cc (master)

    Description

      The following plain C program:

      extern void foo();
      extern int bar;
      
      int main()
      {
          foo();
          return bar;
      }
      

      give the following linker errors (Compile Output pane):

      gcc -c -pipe -fPIC -g -Wall -Wextra -DQT_QML_DEBUG -I../../../ExternC -I. -I/opt/Qt/6.7.3/gcc_64/mkspecs/linux-g++ -o main.o ../../main.c
      g++  -o ExternC  main.o      
      /usr/bin/ld: main.o: in function `main':
      /home/andre/tmp/ExternC/build/Desktop_Qt_6_7_3-Debug/../../main.c:7: undefined reference to `foo'
      /usr/bin/ld: /home/andre/tmp/ExternC/build/Desktop_Qt_6_7_3-Debug/../../main.c:9: undefined reference to `bar'
      collect2: error: ld returned 1 exit status
      make: *** [Makefile:245: ExternC] Error 1
      17:48:20: The process "/usr/bin/make" exited with code 2.
      17:48:20: Error while building/deploying project ExternC (kit: Desktop Qt 6.7.3)
      17:48:20: When executing step "Make"

      Both linker errors are shown in the Issues pane, but you cannot navigate to the line with a double click. (I think that has worked in earlier versions)

      The first issue allows jumping to the line by opening the issue and clicking the link. The second issue does not allow that at all.

      On a side note, in the Compile Output pane, the first linker error is clickable, the second one not. Maybe that is related.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              kandeler Christian Kandeler
              aha_1980 André Hartmann
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes