如何在 Visual C++ 2010 中添加要链接的 lib 文件? [英] How do I add a lib file to link in Visual C++ 2010?

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

问题描述

我在 Visual C++ 2010 上找到了附加依赖项,但是当我转到 .lib 时似乎找不到任何添加新 .lib 文件的选项.我需要添加 wsock32.lib 来链接我的文件,我该如何实现?

I've found the Additional Dependencies thing on Visual C++ 2010, but I can't seem to find any option of adding new .lib files when I go to . I need to add wsock32.lib to link with my file, how do I make it happen?

谢谢!

推荐答案

在文本字段中添加 wsock32.lib.

Add the wsock32.lib in the text field.

 Project Properties -> Linker -> Input -> Additional Dependencies.

当您在该字段中单击时,您会看到一个 ... 按钮.单击此按钮并在每行添加一个库名称.或者,您可以在字段中写入名称.用空格字符分隔所有条目.

When you click in the field, you get a ... button. Click on this button and add one library name per line. Alternatively you can write the names in the field. Separate all entries with space characters.

你可以在命令行中验证它

You can verify that it's on the command line in

 Project Properties -> Linker -> Command Line.

这篇关于如何在 Visual C++ 2010 中添加要链接的 lib 文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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