在Visual Studio中如何将所有.lib包含在文件夹中 [英] In visual studio how to include all .libs in a folder

查看:423
本文介绍了在Visual Studio中如何将所有.lib包含在文件夹中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试与另一个项目一起构建一个项目.那里有很多库,而且我不确定所需的未引用符号在哪里.

I am trying to build a project with another project. There are a lot of libs in there and I am not sure where the required unreferenced symbols are present.

有没有一种方法可以在编译时包含所有.lib文件?

Is there a way I can include all the .lib files while compiling?

我已经将lib目录作为链接器的附加输入,但是它要求包含单个的.lib文件.是否可以选择在此文件夹中包含所有.lib?

I have given the lib directory as an additional input to the linker, yet it asks for individual .lib files to be included. Is there an option to say include all .libs in this folder?

推荐答案

bigD的答案是正确的.

bigD's answer is right.

至少在VS 2012中,您实际要执行此操作的位置是通过右键单击项目,然后转到:

The place you would actually do this, in VS 2012 at least, is by right-clicking on the project, then going:

属性>配置属性>链接器>命令行>其他选项

Properties > Configuration Properties > Linker > Command Line > Additional Options

在该框中,您只需输入:

In that box, you would just type:

"[libFolder]\*.lib"

您可以通过用空格分隔位置来获得多个位置,如下所示:

You can have multiple locations by separating locations with a space, like so:

"[libFolder1]\*.lib" "[libFolder2]\*.lib"

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

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