Results 1 to 4 of 4

Thread: Dynamic library in windows

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #4
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Wiki edits
    17

    Default Re: Dynamic library in windows

    Yes, as long as the DLL does not link to any Qt component. The above uses macros defined by Qt headers but you could easily produce a non-Qt version of those macros to provide complete independence.

    With the C++ example the user would have to be using the same compiler/linker type to cope with name mangling: e.g. if you built the DLL with MSVC they would need to use MSVC, if you build with MinGW/GCC they would need to use GCC.

    If the interface is C-style then any compiler/linker should be able to use it.

  2. The following user says thank you to ChrisW67 for this useful post:

    themean (1st May 2012)

Similar Threads

  1. Using content from a dynamic library (Windows)
    By MasterBLB in forum Qt Programming
    Replies: 8
    Last Post: 9th August 2011, 14:32
  2. Dynamic library on Mac, Library not loaded
    By grayfox in forum Newbie
    Replies: 2
    Last Post: 2nd July 2011, 02:42
  3. Dynamic library with GUI for Mac
    By mouse_sonya in forum Qt Programming
    Replies: 1
    Last Post: 26th July 2010, 12:23
  4. Linking Qt in a dynamic library
    By dave_mm0 in forum Qt Programming
    Replies: 4
    Last Post: 18th July 2009, 16:28
  5. How to use a Dynamic Link Library with QT / C++.
    By nivaldonicolau in forum Newbie
    Replies: 5
    Last Post: 29th April 2009, 14:05

Tags for this Thread

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.