Tuesday, March 1, 2011

A quick heads-up for people migrating to Visual C++ 2010

If you've been using an older version of Visual C++, you've probably had a solution with one or more library projects you've written, and a project for the main program. To link these together, you probably right-clicked the main program's project, selected "Project Dependencies..." from the menu, chose whatever libraries you wanted the main project to link with, and you were done.

I've tried doing this in VC++ 2010, only to be baffled by a pretty large list of unresolved external symbols, even for libraries I was sure I'd set as dependencies. Fortunately, a Google search turned up these forum threads, where I've learned that you should now add the dependencies at "Project Properties -> Common Properties -> Framework and References", instead of using "Project Dependencies". So... why was this changed around? Was there something so wrong with the previous approach?

No comments:

Post a Comment