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

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

问题描述

我在Visual C ++ 2010上发现了其他依赖项",但是转到时似乎找不到添加新.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中添加要链接的库文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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