Visual C++ Library Directories Command Line equivalent

懵懂的女人 提交于 2019-12-19 15:40:35

问题


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).


回答1:


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

cl -I "path\to\Boost" test.cpp /link /LIBPATH:"C:\path\to\Boost\stage\lib"



来源:https://stackoverflow.com/questions/12124739/visual-c-library-directories-command-line-equivalent

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!