Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Perferati

Organizing/Linking classes

This topic is 5821 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

Hi all, I was wondering if anyone had any suggestions about managing a large program with many classes. I am using Visual C++ btw. I was wondering how I could maybe package some classes together (after they are all well documented) and link them to the program so they do not show up on my workspace window. That way I can go crazy and define as many classes as I like, provided they are necessary and orgranized properly, and I won''t have an overwhemling class workspace. Any suggestions would be apprectiated.

Share this post


Link to post
Share on other sites
Advertisement
That''s what static libraries are for. Put related classes
into their own static libraries. Then when linking your
main EXE, just pull in the appropriate libraries.


~~~~
Kami no Itte ga ore ni zettai naru!

Share this post


Link to post
Share on other sites
If you are sure that you will never have to make changes to the code, you can package them up in a library. This way you just have to link the library, instead of having the source files cluttering up your workspace.

---
Make it work.
Make it fast.

"I’m happy to share what I can, because
I’m in it for the love of programming. The Ferraris are just gravy, honest!" --John Carmack: Forward to Graphics Programming Black Book

Share this post


Link to post
Share on other sites
Thanks for the speedy reply! I did a little yahoo searching and found a link to a GameDev article on Static Libraries...didn''t know it was so straightforward!

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

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

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!