Jump to content
  • Advertisement
Sign in to follow this  
incin

c++ libraries / management

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

I've been using c++ forever. For the most part, I like developing in c++, but I'm having trouble wasting time fiddling around with setting up my environment with all of the libraries I want to use, especially when I compare how easy it is to do most tasks with c#. In linux, you can install most libraries easily, which makes using them as hard as adding -L/-l parameters to the compiler. However, on windows, setting up a new library is almost always a pain. Missing / broken project files for MSVC, and manual installation of dependency libraries are the main issues. I've dealt with this for a while, and usually end up setting up the same library multiple times as I get new machines, and new projects. Does anyone have any tricks, or advice?

Share this post


Link to post
Share on other sites
Advertisement
I don't have any problems with this. On the system I keep all the libraries I make, or aquire in a hierarchy directory structure on my development drive. I put all my libraries there. If I add a new directory with new libraries, I just go into the preferences on VS and add the library path. That way they are always found. I also make drive D my development drive and the paths relative. That way if I get a new system or whatever I just make sure that the development environment is on the same drive as my libs. I have never had a problem.

If you think about it this is what MS does. If you install DirectX, it isn't like you have trouble with your programs every finding the libraries after install. (at least I have never seen it and I have been coding since time began) :P That is what DX does on install.

So just make a common lib dir, and add the relative paths to the compiler. Done. Hope this helps you out.

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!