Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. 3rd Party Software
  4. Conflict between two libraries QGui4.lib and qwt.lib
Forum Updated to NodeBB v4.3 + New Features

Conflict between two libraries QGui4.lib and qwt.lib

Scheduled Pinned Locked Moved 3rd Party Software
3 Posts 2 Posters 3.4k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    RSousa
    wrote on 3 Feb 2011, 18:17 last edited by
    #1

    Hello,

    I 'm builting in a release mode and I had a linking problem:

    1>QtGui4.lib(QtGui4.dll) : error LNK2005: "public: void __thiscall QWidget::resize(int,int)"
    (?resize@QWidget@@QAEXHH@Z) already defined in qwt.lib(qwt_legend.obj)

    They were compiled in release and Multi-threaded DLL modes...

    It seems conflict between these two libraries...

    I can´t remove one of them and I can´t remove the function from any of these libraries...

    Could you help me, please...?

    Thank you very much

    All the best

    Ricardo Sousa

    1 Reply Last reply
    0
    • G Offline
      G Offline
      giesbert
      wrote on 3 Feb 2011, 20:06 last edited by
      #2

      if this is already defined in your qwt version, perhaps qwt is linked statically to qt?
      Otherwise it must not be in there.

      Nokia Certified Qt Specialist.
      Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

      1 Reply Last reply
      0
      • R Offline
        R Offline
        RSousa
        wrote on 7 Feb 2011, 13:09 last edited by
        #3

        Thank you Gerolf

        You are right.. I thought that the lib file was an import library.

        I also tried to create an import library for qwt but I only got a .dll because I don´t have a the headers files __declspec definitions (implicit use of .dll). Is there any way to create a .dll without changing the header files?

        Thank you very much again!

        All the best

        Ricardo Sousa

        1 Reply Last reply
        0

        2/3

        3 Feb 2011, 20:06

        • Login

        • Login or register to search.
        2 out of 3
        • First post
          2/3
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved