Thread: How to make .lib files & distribute the implementation with the header??

  1. #1
    Registered User
    Join Date
    Oct 2002
    Posts
    7

    How to make .lib files & distribute the implementation with the header??

    I just wrote a full application & i want to distribute the implementation only with the header file. I know that it is done by making .lib file(implementation) & .h file..
    My question is:
    how to make .lib & .h files on MSVC++???(6 & 7)
    thanx in advance

  2. #2
    Registered User
    Join Date
    May 2002
    Posts
    66
    I will assume you mean .lib to mean a static library, since .lib is also an import library for a DLL.

    In Visual C++ IDE, select a 'add new project', then choose the type to be a "Win32 Static Library". Add your CPP files, compile and you get a .LIB.

    Now create a console app, link your static .LIB and include your include directory and write some test cases.

  3. #3
    Registered User
    Join Date
    Oct 2002
    Posts
    7

    thanx

    thank u a lot

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. #include header files or .cpp files?
    By DoctorX in forum C++ Programming
    Replies: 3
    Last Post: 12-23-2006, 12:21 PM
  2. need help with menu program and header files
    By DFC in forum C++ Programming
    Replies: 12
    Last Post: 12-07-2005, 12:09 PM
  3. What /what not to put in header files
    By Just in forum C Programming
    Replies: 1
    Last Post: 12-14-2002, 10:45 AM
  4. Header files
    By Jez_Master in forum C++ Programming
    Replies: 2
    Last Post: 04-08-2002, 07:56 AM
  5. Header files
    By borland_man in forum C++ Programming
    Replies: 14
    Last Post: 02-22-2002, 04:30 AM