what is the use of a .lib file

This is a discussion on what is the use of a .lib file within the C Programming forums, part of the General Programming Boards category; Hello I was wondering if you guys told me what the is the function of a .lib file. I created ...

  1. #1
    Registered User
    Join Date
    May 2004
    Posts
    70

    what is the use of a .lib file

    Hello

    I was wondering if you guys told me what the is the function of a .lib file.

    I created this dll file and the two main outputs besides the other files(.exp,.ilk,.obj,.pch,.pdb,idb which i think are intermediate files) are a.dll and a .lib file.

    my main program which needs the dll just seems to use the .dll, hence i was wondering what is the use of the .lib file

  2. #2
    chococoder
    Join Date
    Nov 2004
    Posts
    515
    the lib is used as a sort of catalog for the linker to know where in the DLL to link to.
    It's only needed when writing applications that use the DLL, you don't need to distribute it (unless you're distributing an SDK for the DLL).

  3. #3
    Registered User
    Join Date
    May 2004
    Posts
    70
    thanks for the reply


    i generated a test application to test my dll and it seemed to work without the use of the .lib file

    isn't that the equivalent of an SDK for the DLL?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. sequential file program
    By needhelpbad in forum C Programming
    Replies: 80
    Last Post: 06-08-2008, 01:04 PM
  2. Making a LIB file from a DEF file for a DLL
    By JMPACS in forum C++ Programming
    Replies: 0
    Last Post: 08-02-2003, 08:19 PM
  3. System
    By drdroid in forum C++ Programming
    Replies: 3
    Last Post: 06-28-2002, 10:12 PM
  4. Hmm....help me take a look at this: File Encryptor
    By heljy in forum C Programming
    Replies: 3
    Last Post: 03-23-2002, 09:57 AM
  5. Need a suggestion on a school project..
    By Screwz Luse in forum C Programming
    Replies: 5
    Last Post: 11-27-2001, 01:58 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21