Using libraries in VS2010 / c++
-
In previous versions, when I use dependencies and make a library project a dependency of another project, a link is added to the solution, and I can debug through the main project into the library. With VS2010, making the same dependency has no obvious effect on the solution. When I build the main project, the library is built, but is NOT included in the link. Seems trivial, but need help. Related. When I want to add a library from another developer, I used to use 'Add existing'. This still works in VS2010, but .lib is not in the drop downs. What is the preferred method for doing this. EJS
-
In previous versions, when I use dependencies and make a library project a dependency of another project, a link is added to the solution, and I can debug through the main project into the library. With VS2010, making the same dependency has no obvious effect on the solution. When I build the main project, the library is built, but is NOT included in the link. Seems trivial, but need help. Related. When I want to add a library from another developer, I used to use 'Add existing'. This still works in VS2010, but .lib is not in the drop downs. What is the preferred method for doing this. EJS
Hi Ed, Those wacky folks at MS have changed the way dependencies are stored and used. Dependencies are now stored in the project file rather than the solution file. Please have a look here[^] - it's explained a bit better than I could, especially the section "Solution Dependencies into Project to project reference." Hope that helps, at least to dig deeper, Cheers, Ash
modified on Tuesday, June 1, 2010 8:38 AM