When to use the Visual Studio Additional dependencies?

后端 未结 4 460
醉酒成梦
醉酒成梦 2021-01-29 23:02

In C++, you got the header files (.h), the (.lib) files and the (.dll) files.

In Visual Studio, you provide the location to search for these files in three different pla

4条回答
  •  梦如初夏
    2021-01-29 23:29

    Regarding your Q2...

    For 3rd-party libraries, I take advantage of Visual Studio Build Command macro variables $(Platform) and $(Configuration) enter something like this:

    Y:\dev3\cpp\cryptopp\cryptopp561\$(Platform)\Output\$(Configuration);...
    

    In this way, you can just enter the same exact line and Visual Studio substitute the macro variables and look in either \cryptopp561\Win32\Output\Release\ or \cryptopp561\Win32\Output\Debug\ depending on which configuration you have active. It doesn't actually save much typing but it helps keep things consistent and accurate.

提交回复
热议问题