Subj : Re: lib files To : comp.programming From : puzzlecracker Date : Sun Oct 09 2005 02:03 pm Scott McPhillips [MVP] wrote: > puzzlecracker wrote: > > > > What are prons and cons of static lib and why would you choose them as > > opposed to dll? > > > > > > Another question: when you compile a program that has a main, would lib > > be generated or it is only for library types? that is whether exe and > > lib are generated together? > > > > A static lib avoids the pros and cons of DLLs :) > > It has the advantage that other programmers can write it and use it, > independently of the exe and independently of extra runtime files. It > is nothing more than a container for previously compiled code. Some > commercial libraries take this form: You get the functions but you don't > get the source code. > > Exe and lib are not generated together. For any one project the build > generates either an exe, or a static lib, or a dynamic lib plus a DLL. > They are three different types of project. > > -- > Scott McPhillips [VC++ MVP] Scott - thanks a bunch... It seems to me that my cursory understanding desires better. Any good reference you can suggest to learn this thnigs more closely? Thanks again .