Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Checking that all libs and dlls are from the same build?

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?

like image 217
Karl Avatar asked Nov 06 '22 12:11

Karl


1 Answers

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.

like image 94
sbi Avatar answered Nov 13 '22 03:11

sbi