Uploaded image for project: 'Qbs ("Cubes")'
  1. Qbs ("Cubes")
  2. QBS-1139

QNX: QCC failed to link wihout "-lang-c++"

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 1.8.0
    • Fix Version/s: 1.8.1
    • Labels:
      None
    • Environment:
      Windows, qnx660, armv7a
    • Commits:
      0090ba818fd500b807863f79d2c708800fff9a69

      Description

      Simple "hello world" program cannot be linked without -lang-c++ option

      The folowing command resulting to "undefined reference to `std::cout'"

      C:/qnx660/host/win32/x86/usr/bin/QCC.exe "-Wl,--sysroot=C:/qnx660/target/qnx6" -Vgcc_ntoarmv7le -o D:/Projects/.BUILDS/qbs18test2/{74ea04ca-75b7-4726-89aa-9bab6d7a8a22}/debug/qtc_QNX_Qt_5_0b1813ff-debug/qbs18test2.qtc-QNX-Qt-5-0b1813ff.994cf08c/qbs18test2 D:/Projects/.BUILDS/qbs18test2/{74ea04ca-75b7-4726-89aa-9bab6d7a8a22}/debug/qtc_QNX_Qt_5_0b1813ff-debug/qbs18test2.qtc-QNX-Qt-5-0b1813ff.994cf08c/.obj/3a52ce780950d4d9/main.cpp.o
      

      Adding "-lang-c++" fixing it.

      
      C:\qnx660\host\win32\x86\usr\bin\QCC.exe "-Wl,--sysroot=C:/qnx660/target/qnx6" -lang-c++ -Vgcc_ntoarmv7le -o D:/Projects/.BUILDS/qbs18test2/{74ea04ca-75b7-4726-89aa-9bab6d7a8a22}/debug/qtc_QNX_Qt_5_0b1813ff-debug/qbs18test2.qtc-QNX-Qt-5-0b1813ff.994cf08c/qbs18test2 D:/Projects/.BUILDS/qbs18test2/{74ea04ca-75b7-4726-89aa-9bab6d7a8a22}/debug/qtc_QNX_Qt_5_0b1813ff-debug/qbs18test2.qtc-QNX-Qt-5-0b1813ff.994cf08c/.obj/3a52ce780950d4d9/main.cpp.o
      
      

        Attachments

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

          Activity

            People

            Assignee:
            jakepetroules Jake Petroules (DO NOT ASSIGN ISSUES)
            Reporter:
            zak Zakhar Bondia
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes