Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-125975

QT_DISABLE_DEPRECATED_UP_TO 0x060400 gives link error with static build

    XMLWordPrintable

Details

    • Windows
    • 47ff7d99a (dev), a2b94167a (6.8), 4f77d117c (6.7), 15c1ef513 (tqtc/lts-6.5)

    Description

      if  QT_DISABLE_DEPRECATED_UP_TO 0x060400 in static build environment it gives 
      Linker Tools Error LNK2005: symbol already defined in object
      Linker Tools Error LNK1169: The build failed due to multiple definitions of one or more symbols.

      This can be seen with following tiny code.

      #define QT_DISABLE_DEPRECATED_UP_TO 0x060400
      
      #include <QByteArray>
      #include <QLocale>
      
      int main(int , char* [])
      {
      QLocale l("C");
      return QByteArray().isNull();
      } 

      Same code works with QT_DISABLE_DEPRECATED_UP_TO=0x060300

       

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-125975
          # Subject Branch Project Status CR V

          Activity

            People

              ivan.solovev Ivan Solovev
              irfan.omair@digia.com Irfan Omair
              Vladimir Minenko Vladimir Minenko
              Alex Blasche Alex Blasche
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes