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

QT_DISABLE_DEPRECATED_UP_TO 0x060400 gives link error with static build

XMLWordPrintable

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

      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

       

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

            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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes