Visual C++ Library Directories Command Line equivalent

后端 未结 1 1939
野的像风
野的像风 2021-01-17 14:25

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

相关标签:
1条回答
  • 2021-01-17 14:53

    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"

    0 讨论(0)
提交回复
热议问题