简体   繁体   English

升级到VS10后无法链接到lib文件

[英]Cannot link to lib file after upgrading to VS10

So I imported this VS9 solution into VS10 and VS10 would convert the whole thing into its new format for solution and project files. 所以我将这个VS9解决方案导入VS10,VS10将整个事物转换为解决方案和项目文件的新格式。 However, now it is giving me linker errors. 但是,现在它给了我链接器错误。

One project, a native C++ project, is using a set of header files and a .lib file to link to some external library. 一个项目,一个本机C ++项目,正在使用一组头文件和一个.lib文件来链接到一些外部库。 In the project, this library is specified by being put into a "Library" folder in the project. 在项目中,通过将该库放入项目中的“Library”文件夹来指定该库。 In VS9, this works fine, in VS10, it fails. 在VS9中,这很好用,在VS10中,它失败了。 The same lib is linked, however, when put into the "Additional Dependencies" setting in the Linker Input panel of the project's options. 但是,当放入项目选项的“链接器输入”面板中的“附加依赖关系”设置时,会链接相同的lib。

I know the technique to drop lib files into the project for more than a decade. 我知道将lib文件放入项目十多年的技术。 Has this stopped working with VS10? 这是否已停止使用VS10?

不,这仍然适用于VS2010(只是测试它以确保)!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM