Visual Studio 2010 not autolinking static libraries from projects that are dependencies as it should be supposed to

后端 未结 4 2097
别那么骄傲
别那么骄傲 2020-11-28 23:28
  • 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
4条回答
  •  攒了一身酷
    2020-11-29 00:21

    For MSVC 14 (2015 version) right-click on the project, then "Add->Reference..." and check all the needed dependencies.

    Yes, it has changed somewhere between 2010 and 2015 versions. Fun!

    And if you are looking to link a project that has resources in it - you need to specify the .res file directly in the list of linker input dependencies (project's properties dialog box) as it doesn't get picked up by the above configuration.

    UPDATE

    Still the same (new) behavior in MSVC 2017

提交回复
热议问题