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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 1.8.1
    • 1.8.0
    • None
    • Windows, qnx660, armv7a
    • 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

        For Gerrit Dashboard: QBS-1139
        # Subject Branch Project Status CR V

        Activity

          People

            jakepetroules Jake Petroules (DO NOT ASSIGN ISSUES)
            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