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

cpp.libraryPaths doesn't support spaces in path to library

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 1.5.1
    • 1.4.0
    • General
    • None
    • Windows MSVC
    • fbf6502160988e0376c26d83732329b226465f27

    Description

      Library paths that contain spaces creates in invalid linking arguments and need quotes to work correctly on MSVC.

      For example:
      cpp.libraryPaths = ["C:/Program Files (x86)/Intel/Composer XE 2013 SP1/compiler/lib/ia32"]

      This will give a linking error:
      Files.obj doesn't exist

      It isn't possible to add quotes around the path because qbs will interrupt it as a relative path and prepend the current directory to the path. link.exe will silently ignore that the invalid LIBPATH doesn't exist. Perhaps QBS could warn the user about invalid LIBPATH's?

      The only work around is manually add LIBPATH:[directory with spaces] to cpp.linkerFlags.

      Attachments

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

        Activity

          People

            jbornema Joerg Bornemann
            vpicaver Philip Schuchardt
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes