Visual C ++库目录命令行等效 [英] Visual C++ Library Directories Command Line equivalent

查看:127
本文介绍了Visual C ++库目录命令行等效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

要使用一些重新编译的库(f.ex. boost chrono)我需要指定库文件夹在visual studio中的属性 - > VC ++目录 - >库目录。我如何使用命令行实现这一点?我一直在使用/ LIBPATH,但我得到链接器错误(LNK1104)。

To use some recompiled libraries (f.ex. boost chrono) i need to specify the library folder in visual studio at Properties -> VC++ Directories -> Library Directories. How can i achieve this using the command line? I have been using the /LIBPATH but i get linker error (LNK1104).

推荐答案

您需要为cl指定 / link< linkoptions> .exe命令行将所需的设置传递给链接器:

You need to specify /link <linkoptions> for cl.exe command line to pass required settings to linker:

cl -Ipath\to\Boosttest.cpp / link / LIBPATH:C:\path\to\Boost\stage\lib

这篇关于Visual C ++库目录命令行等效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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