what is lib file good for?
according to a book,through lib design, dependency will be reduced.but through the .h file
all cpp and function could be access.so which dependency will be reduced?
You use lib files to make libaries. They are basically a concatenation of object files. An object file is what you get when you compile a .c/cpp file.
You only have to link the libary instead of all individual object files.
You only have to link the libary instead of all individual object files.
Yes, but a library does not depend on the code that uses it. Anyway, the reduction of dependencies is not due to the library itself -- the reduction of dependencies comes from organizing the code into libraries.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement