Results 1 to 5 of 5

Thread: Static linking against Qt 4.7.1 with microsoft compiler / linker.

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Dec 2006
    Posts
    160
    Thanks
    33
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Static linking against Qt 4.7.1 with microsoft compiler / linker.

    Quote Originally Posted by d_stranz View Post
    And if you are being paid by your customer to develop this software, then do what I and many other commercial Qt developers do: Buy a Qt Commercial license. Then you can build and distribute your app in any form you want.
    The license is paid already, and i'm aware of each aspect of each license / sublicense. Thanks anyway.

    @franz: Yes QNetwork is linked. Also, in the linker error log, you can see that not only references to QNetwork functions are being referenced, basically any Qt function are.

    Any idea?
    Thank you very much
    Pierre.

  2. #2
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,327
    Thanks
    317
    Thanked 871 Times in 858 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Static linking against Qt 4.7.1 with microsoft compiler / linker.

    Quote Originally Posted by hickscorp View Post
    The license is paid already, and i'm aware of each aspect of each license / sublicense. Thanks anyway.
    OK, so then you aren't really using Qt 4.7.1 Open Source, you're using it under a commercial license and static linking is just fine.

    Make sure you don't have QT_DLL defined in both the MSVC compile or link settings, and make sure you use the same compile settings for all of the libraries and app code. Sounds like maybe QtNetwork has different settings, and it might be trying to drag in QtCore classes and methods with the wrong mangled names.

Similar Threads

  1. VC static linking lib with another lib
    By Mookie in forum General Programming
    Replies: 4
    Last Post: 23rd November 2010, 08:10
  2. Static linking with Qt
    By prykHetQuo in forum Qt Programming
    Replies: 3
    Last Post: 3rd June 2009, 20:56
  3. Static linking
    By didcea in forum Qt Programming
    Replies: 0
    Last Post: 11th October 2008, 18:40
  4. Qt 4.3 static linking on Windows
    By john_crichton in forum Installation and Deployment
    Replies: 2
    Last Post: 13th May 2008, 06:57
  5. gentoo qt4 static linking
    By powermax in forum Newbie
    Replies: 1
    Last Post: 27th April 2008, 21:11

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.