what is lib file good for?

Started by
1 comment, last by JohnBolton 18 years, 10 months ago
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?
Advertisement
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.
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.
John BoltonLocomotive Games (THQ)Current Project: Destroy All Humans (Wii). IN STORES NOW!

This topic is closed to new replies.

Advertisement