Newbie question Building Library Binaries

This is a discussion on Newbie question Building Library Binaries within the C++ Programming forums, part of the General Programming Boards category; Good Day All, I am quite new to c++. I am hoping someone could point me in the direction of ...

  1. #1
    Registered User
    Join Date
    Oct 2005
    Location
    Ottawa
    Posts
    18

    Question Newbie question Building Library Binaries

    Good Day All,

    I am quite new to c++. I am hoping someone could point me in the direction of some documentation or offer some advice regarding how to 'build library binaries' from source code. I am programming on MSVC6 on windowsXP.

    Thanks!

  2. #2
    Registered User
    Join Date
    Aug 2005
    Posts
    1,267
    not much to it -- just create a library project. File --> New, then in the project list select one of the library (*.lib) project types. Don't confuse *.lib with DLL, they are not the same.

  3. #3
    Registered User
    Join Date
    Oct 2005
    Location
    Ottawa
    Posts
    18
    Thanks for the reply!
    I have done this. The only noticable output is a file called PDFlib.NCB .... Could this be what Im looking for? I figured Id get somesort of *.lib file .... Could you breifly explain the difference between the *.DLL and the *.lib?

    Many Thanks

  4. #4
    Registered User
    Join Date
    Aug 2005
    Posts
    1,267
    The .lib and .dll files are put in either Debug or Release subdirectory (depending on which kind of build you did). That diectory also contains *.obj files and some other stuff.

    A .lib file is what your program must link with in order for the linker to resolve the functions that were called. The library can be statically linked, which means that every program has its own copy of all the functions. A DLL is a Dynamic Link Library -- only one copy of the code resides on the computer and all programs access that one copy. There are a few programming differences too, but don't worry about them until you want to write a DLL.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Newbie with Very Newbie Question
    By Jedi_Mediator in forum C++ Programming
    Replies: 18
    Last Post: 07-01-2008, 09:00 AM
  2. newbie: array question :(
    By cstudent in forum C Programming
    Replies: 2
    Last Post: 04-09-2008, 07:46 AM
  3. VC++ 6 question: browsing into a library
    By maxhavoc in forum Tech Board
    Replies: 4
    Last Post: 09-15-2006, 07:57 AM
  4. Total Newbie Question
    By Kid A in forum C++ Programming
    Replies: 4
    Last Post: 06-22-2006, 06:36 AM
  5. Newbie Question - fflush(stdin) & fpurge(stdin) on Mac and PC
    By tvsinesperanto in forum C Programming
    Replies: 34
    Last Post: 03-11-2006, 12:13 PM

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