Reputation: 91825
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?
Upvotes: 12
Views: 5011
Reputation: 91825
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.
Upvotes: 13