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

Display an error when building DLLs that do not export any functions

    XMLWordPrintable

Details

    Description

      On Windows, building a DLL that does not export any functions will not generate an import library or exports file. If anything tries to link to that DLL, the compiler will error out, unable to find the .lib.

      It would be helpful if QBS analyzed built DLL artifacts to see whether they export any functions, and if they do not, display an warning message like "mydll.dll does not export any functions. Did you forget to decorate classes with __declspec(dllexport)?"

      I can't think of any use cases that warrant a DLL with no exported functions, but I'm sure there are some. However in most cases I think issuing a warning would be helpful.

      Attachments

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

        Activity

          People

            jbornema Joerg Bornemann
            jakepetroules Jake Petroules (DO NOT ASSIGN ISSUES)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes