What is the difference between the LIB and LIBPATH environment variables for MS Visual C/C++?

前端 未结 1 651
我在风中等你
我在风中等你 2020-12-29 04:33

I\'ve been working on some build scripts, and this is bugging me. I want to be sure that we\'re independent of environment settings, but in order to be sure of that I feel a

1条回答
  •  -上瘾入骨i
    2020-12-29 05:03

    LIB is for the linker, helps it find import and static libraries.

    LIBPATH is for the compiler, helps it find metadata files. Like type libraries, .NET assemblies, WinRT .winmd files.

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