如何在vs2010中使用我的* .lib文件 [英] How to use my *.lib files in vs2010

查看:340
本文介绍了如何在vs2010中使用我的* .lib文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在vs2010中使用opencv库。在vs2008中,我可以设置我的项目:tools-> options-> VC ++目录 - > include目录 - > C:\Program Files \OpenCV \include\opencv; tools-> options- > VC ++目录 - >库目录 - > F:\ CMakeOpenCV \lib \ Release; F:\ CMakeOpenCV \lib \ Debug;并且在project-> property->配置属性 - > linker-> AdditionalDependencies-> * .lib
如何在vs2010中包含.lib文件,就像在vs2008中一样。

I want to use opencv library in vs2010. In vs2008 i can set my project like that:  tools->options->VC++ directories->include directories->C:\Program Files\OpenCV\include\opencv;tools->options->VC++ directories->library directories->F:\CMakeOpenCV\lib\Release;F:\CMakeOpenCV\lib\Debug; and in project->property->configuration properties->linker->AdditionalDependencies->*.lib
How to include the .lib files in vs2010 just like in vs2008.

推荐答案

你实际上并没有把"* .LIB"在AdditionalDependencies中,你呢?您需要列出lib文件。

您有什么错误?关于如何引用链接器输入,2008年和2010年之间确实没有任何功能差异。

You're not actually putting "*.LIB" in the AdditionalDependencies are you? You need to list the lib files.

What errors do you get? There really isn't any functional difference between 2008 and 2010 in how you reference linker inputs.


这篇关于如何在vs2010中使用我的* .lib文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆