Jump to content
  • Advertisement
Sign in to follow this  
programci_84

[C++, VC2008] DLL or LIB?

This topic is 3093 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,

Currently I'm working on my graphics engine. I started with writing some low-level core systems.

I'm using VC++ 2008 Express Edition and decided to build all the system elements of the architecture seperately: ZTxCoreWin32, ZTxRenderer, ZTxPhysics, ZTxAnimaton etc.

What do you suggest about making'em all Dynamic Linked or Static Linked Libraries (DLLs or LIBs)? Actually, I don't know the differences between'em and any pros/cons.

Thanks in advance.

Share this post


Link to post
Share on other sites
Advertisement
Static libraries are probably going to be the easiest to start out with. Less files, less headaches. Sadly, longer link times, but only with larger codebases. DLLs are great if you're actually taking advantage of shared executable code and dynamic linking (i.e. you have multiple games that use common engine DLLs, so upgrading the DLLs automatically upgrades all your games), but this kind of functionality requires you to architect your code in a particular (stricter) fashion. If the DLLs are just extra dependencies sitting around that only a single application ever uses, you've defeated the purpose of using them.

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!