Results 1 to 4 of 4

Thread: MSVC no .lib created

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2007
    Location
    Philadelphia, USA
    Posts
    255
    Thanks
    43
    Thanked 21 Times in 21 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default MSVC no .lib created

    This is driving me crazy.

    I have two shared library projects, they both use identical configuration:
    TEMPLATE = lib
    CONFIG += qt dll release

    I am compiling with MSVC on the command line using nmake.

    * In one case .dll and .lib are both created (That's good because .lib is needed at compile time, and .dll is needed at run time).
    * In the other case, only .dll is created

    Any ideas? Shouldn't .lib always be created?

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

    Default Re: MSVC no .lib created

    Quote Originally Posted by magland View Post
    Any ideas? Shouldn't .lib always be created?
    It should.

    When do the second case occur? Or does it happen randomly?

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

    Default Re: MSVC no .lib created

    Quote Originally Posted by magland View Post
    Any ideas? Shouldn't .lib always be created?
    I think I've bumped into this problem in the past and it might've been a missing export...
    J-P Nurmi

  4. The following user says thank you to jpn for this useful post:

    magland (13th February 2008)

  5. #4
    Join Date
    Feb 2007
    Location
    Philadelphia, USA
    Posts
    255
    Thanks
    43
    Thanked 21 Times in 21 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: MSVC no .lib created

    Quote Originally Posted by jpn View Post
    I think I've bumped into this problem in the past and it might've been a missing export...
    Yes, that was it. It would have taken me a long time to find it without your help.
    Thanks!

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.