Jump to content
  • Advertisement
Sign in to follow this  
derek7

what is lib file good for?

This topic is 4875 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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?

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!