Results 1 to 4 of 4

Thread: dll file inclusion

  1. #1
    Join Date
    Jul 2007
    Posts
    20
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default dll file inclusion

    dear friends
    i have created a .dll file
    i want to include in in my another application.
    what should i write in LIBs varibale of .pro file .
    if i write as below it is not working..

    LIBS += -LD:\programming -lprog1.dll

    where D:\programming is my folder and prog1.dll is my dll file.

    This is not working. it is saying invalid file..
    plz help..

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: dll file inclusion

    It should be "-lprog1".

  3. #3
    Join Date
    Jul 2007
    Posts
    20
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: dll file inclusion

    This "-lprog1" is working fine if my library is a static library file..
    that is if my library is prog1.lib it is working fine.
    but if it is prog1.dll it is not working..
    plz help..

  4. #4
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: dll file inclusion

    You'll need the .lib also in case of a dynamic library. Fix your exports in case you're not getting one when you build the library.
    J-P Nurmi

Similar Threads

  1. Set up the Qt4.3.2 with Visual Studio 2005
    By lamoda in forum Installation and Deployment
    Replies: 6
    Last Post: 30th January 2008, 06:51
  2. file renaming on windows
    By jdd81 in forum Qt Programming
    Replies: 9
    Last Post: 2nd October 2007, 19:41
  3. AVOIDING mutiple inclusion of header file???
    By pratik in forum General Programming
    Replies: 4
    Last Post: 10th July 2007, 14:09
  4. qt-3.3.8 fail in scratchbox
    By nass in forum Installation and Deployment
    Replies: 0
    Last Post: 25th May 2007, 15:21
  5. Sending Binary File with QFTP
    By nbkhwjm in forum Newbie
    Replies: 2
    Last Post: 7th March 2007, 18:10

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.