In Visual Studio 2008, if I had a solution containing multiple C++ projects, I could make them depend on each-other and correctly link by using the "Project Dependencies" option. This fixed up the build order and also made (e.g.) the main application project link against the static library outputs.
In Visual Studio 2010, this doesn't seem to work. Did Visual Studio 2010 change the way this works?
On the Project menu, choose Project Dependencies. The Project Dependencies dialog box opens. On the Dependencies tab, select a project from the Project drop-down menu. In the Depends on field, select the check box of any other project that must build before this project does.
Configuration Properties => Linker => General => Additional Library directories. Here you list out the "lib" directories that you want to be searched and made available. Configuration Properties => Linker => Input => Additional dependencies. Here you explicitly specify the .
Yes. You also need to add a Reference to the depended-upon project. This is not just for managed C++ (or C++/CLI) applications any more.
The Visual C++ Team Blog has an entry about this: Flexible Project-to-Project References.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With