5

I am developing a program in VS C++ 2008.

Right now, I have a huge list of dll and lib dependencies and I am adding some more. I worry that when I need to update a dependency by building from source (where I have to manually replace built dlls and libs in the correct place), if I accidently forgot to replace something or vice versa, I may run into a compile and/or runtime problem. And finding which place goes wrong can be a bit difficult.

So is there some sort of program or method out there that can suit this task to ease building a program with many updating dependencies?

Daniel Dyson
  • 13,192
  • 6
  • 42
  • 73
Karl
  • 5,613
  • 13
  • 73
  • 107

3 Answers3

1

You could add scripts as post-build steps into your DLL projects which automatically copy the results into a common directory (something like $(SolutionDir)$(ConfigurationName) might be fine, unless you use different projects configurations for the same solution configuration). Or you just set all the projects' output directories to such a common directory.

Then, when you build the whole solution, you know you have the latest versions of all these files in that directory.

sbi
  • 219,715
  • 46
  • 258
  • 445
1

Avoid making this complicated. A Visual Studio solution can contain as many projects as you need to build all dependencies. Build + Clean will delete all binaries, Build + Build will rebuild them. Just make sure that Build + Clean deletes every .lib that you've got a dependency on.

Hans Passant
  • 922,412
  • 146
  • 1,693
  • 2,536
0

Refix is a great tool for checking dependencies: http://refix.codeplex.com/

Daniel Dyson
  • 13,192
  • 6
  • 42
  • 73