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

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

问题描述

我在 Visual C++ 2010 上找到了 Additional Dependencies 东西,但是当我转到 .我需要添加 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天全站免登陆