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

mingw wrong order of linking

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 1.1.0
    • 1.0.0
    • General
    • None

    Description

      When I add static libraries to project via

      cpp.staticLibraries: [
      			"../libs/blablabla/somelib.a",
      			"../libs/blablabla2/somelib2.a",
      ....
      ]
      

      linker command add this libraries before all my dependents. But my dependent project, which is static library depends on this 3rdparty library also. So linking fails with "undefined reference".
      I fixed this with dirty thing, adding "staticLibraries = staticLibraries.reverse();" in GenericGCC.qbs, but for sure that is wrong way.

      Attachments

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

        Activity

          People

            jbornema Joerg Bornemann
            vitaly@qubyx.com Vitaly Bondar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes