Results 1 to 6 of 6

Thread: Statically linking third party dll(no .lib file) and use classes using qt

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jul 2012
    Posts
    3
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Statically linking third party dll(no .lib file) and use classes using qt

    Hi,

    Actually same dll file is properly working in visual studio. Required classes are exported and used in that application just by using namespace and adding reference of that dll file.
    So I need to use same dll in qt application. I have linked that dll in my application but still unable to use namespace.
    Is header file required for using namespace and using classes in application ?


    Thanks for help.

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

    Default Re: Statically linking third party dll(no .lib file) and use classes using qt

    Is your DLL a COM DLL? Then you need to #import the type library into your app. Is your VS project a .Net app? That's what adding the reference in VS is doing for you behind the scenes.

    You still cannot link to it statically. It's a DLL. Your VS app is loading it at runtime even if you don't think so. Build your app, then move the DLL somewhere (or rename it temporarily), then run your app without rebuilding. It will tell you it can't find the DLL.
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

Similar Threads

  1. Linking with third-party libraries
    By blooglet in forum Newbie
    Replies: 2
    Last Post: 22nd December 2011, 10:26
  2. Replies: 3
    Last Post: 28th June 2011, 18:32
  3. linking to 3rd party windows DLL
    By shan in forum Newbie
    Replies: 2
    Last Post: 29th January 2011, 10:51
  4. Linking 3rd party libs on Mac OS X
    By jonks in forum Qt Programming
    Replies: 2
    Last Post: 21st June 2010, 06:03
  5. Linking Third party Libraries
    By jsmith in forum Qt Programming
    Replies: 1
    Last Post: 13th October 2009, 06:18

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.