Results 1 to 8 of 8

Thread: LNK2005 Static library

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2007
    Posts
    90
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    40

    Question LNK2005 Static library

    I am trying to include a 3rd party Qt made static library in my Qt project thread. Whenever I instantiate an instance of the class, however, I get the following linker error:

    Error 1 error LNK2005: "public: __thiscall QString::QString(char const *)" (??0QString@@QAE@PBD@Z) already defined in QtCored4.lib(QtCored4.dll) c:\Source\QT4_Core\PMD Monitor\PmdClientApi.lib 1

    And about a hundred more just like that. All having to do with QString.
    Last edited by jacek; 6th July 2007 at 19:12. Reason: changed [code] to [quote]

Similar Threads

  1. Wrap a static QT library inside an XPCOM component ?
    By Paul_Xul in forum Qt Programming
    Replies: 2
    Last Post: 3rd August 2010, 07:16
  2. Replies: 16
    Last Post: 23rd May 2008, 10:12
  3. Building qt program with static library
    By JonathanForQT4 in forum Newbie
    Replies: 2
    Last Post: 22nd June 2007, 23:15
  4. Win32 qmake: building a static library
    By Amanda in forum Qt Programming
    Replies: 5
    Last Post: 8th November 2006, 19:32
  5. I got two problems when I used static compiled library of QT4
    By qintm in forum Installation and Deployment
    Replies: 8
    Last Post: 20th April 2006, 08:52

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.