如何添加.lib文件 [英] How to add a .lib file

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

问题描述

我想将.lib文件添加到我的c ++代码中,但无法找到方法?我有适用于Windows桌面的Visual Studio Express 2017。

I want to add a .lib file to my c++ code but cannot find out how? I have Visual Studio Express 2017 for Windows Desktop.

我已经阅读了答案,说去配置属性,然后链接器,....但是我找不到这个配置属性的位置。请详细说明如何做到这一点?

I have read answers saying that go to Configuration Properties, then Linker, .... but I cannot find where is this Configuration Properties. Please tell elaborately on how to do it?

谢谢

Nihir

推荐答案

在使用项目属性的描述中添加更多细节......

To add a bit more detail to the description of using the Project Properties...

请注意其他依赖项输入区域右侧的向下箭头。 当您单击它时,将打开一个对话框,您可以添加.lib文件。

Note the down arrow to the right of the additional dependencies input area.  When you click it a dialog will open that will enable you to add your .lib file.

还要注意配置和平台的突出显示选项。 您所做的更改只会影响显示的选项。如果在进行更改后添加.lib文件,如果您将配置从上面的Debug更改为Release,则
将看到添加的.lib文件未显示。 配置和平台的组合框允许您选择更改的应用方式。 

Also note the highlighted choices for Configuration and Platform.  The changes that you make will only affect the displayed choices. If after making a change to add a .lib file if you change the configuration from Debug as above to Release, you will see that the added .lib file is not shown.  The combo boxes for Configuration and Platform allow you to select how your changes will be applied. 

单击向下箭头显示以下内容 -

Following is displayed upon clicking the down arrow -

在大多数情况下,您需要保留复选标记以继承父项目或项目默认值。

In most cases you will want to leave the check mark to inherit from parent or project defaults.

单击确定后,项目属性现在将如下所示 -

After clicking OK, the Project properties will now look like this -


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

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