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

mingw wrong order of linking

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes