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

When compiling Qt-master static, QtWebKit and QtScript have multiple defined symbols

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P1: Critical
    • 4.7.0
    • 4.7.0
    • Qt Script
    • None
    • Microsoft Visual C++ 2005, Qt-master, static compiled Qt

    Description

      When building qt-master with ./configure -static, the resulting QtWebKit.lib and QtScript.lib cannot be used together. The following are the errors from the linker:

      6>QtWebKit.lib(JSClassRef.obj) : error LNK2005: "public: __thiscall OpaqueJSClass::~OpaqueJSClass(void)" (??1OpaqueJSClass@@QAE@XZ) already defined in QtScript.lib(JSClassRef.obj)
      6>QtWebKit.lib(JSClassRef.obj) : error LNK2005: "private: __thiscall OpaqueJSClass::OpaqueJSClass(struct JSClassDefinition const *,struct OpaqueJSClass *)" (??0OpaqueJSClass@@AAE@PBUJSClassDefinition@@PAU0@@Z) already defined in QtScript.lib(JSClassRef.obj)
      6>QtWebKit.lib(JSClassRef.obj) : error LNK2005: "public: __thiscall OpaqueJSClassContextData::OpaqueJSClassContextData(struct OpaqueJSClass *)" (??0OpaqueJSClassContextData@@QAE@PAUOpaqueJSClass@@@Z) already defined in QtScript.lib(JSClassRef.obj)
      6>QtWebKit.lib(JSClassRef.obj) : error LNK2005: "public: __thiscall OpaqueJSClassContextData::~OpaqueJSClassContextData(void)" (??1OpaqueJSClassContextData@@QAE@XZ) already defined in QtScript.lib(JSClassRef.obj)
      6>QtWebKit.lib(JSClassRef.obj) : error LNK2005: _kJSClassDefinitionEmpty already defined in QtScript.lib(JSClassRef.obj)
      
      

      Attachments

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

        Activity

          People

            kenthans Kent Hansen (Inactive)
            marcusti Marcus T (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes