- Create a new solution with a C++ console command-line project
- Create a new project, a C++ static library
- Make the command-line project depend on the library
- Make sure "Link Library Dependencies" is turned on in Configuration => Linker => General (it is by default)
- Visual Studio will still not link the library.
How can I fix this? It worked in Visual Studio 2008.
Best Answer
This still works, but was changed in VS 2010:
Just right-click on the console project, select "Properties->Common Properties->Framework and References->Add New Reference" and add the static library project; also check that "Link Library Dependencies" is True on the right hand side. Seems to work for debug and release builds. You learn something new every day. ;)