安装 anaconda3 5.2 后,我使用 conda install boost 安装 boost。
在 C:\ProgramData\Anaconda3\Library\lib 中有两组用于 boost 的库。
boost_python36-vc140-mt-x64-1_67.lib (177 KB)
libboost_python36-vc140-mt-x64-1_67.lib (5576 KB)
这些有什么区别?是一静态一动态吗?
最佳答案
请参阅此链接以了解这些库的命名。
https://www.boost.org/doc/libs/1_58_0/more/getting_started/windows.html#library-naming
以“lib”开头的是
Prefix: except on Microsoft Windows, every Boost library name begins with this string. On Windows, only ordinary static libraries use the lib prefix; import libraries and DLLs do not.
所以它是一个静态库(libboost_python36-vc140-mt-x64-1_67.lib)。
另一个不带 lib 前缀,是导入库(boost_python36-vc140-mt-x64-1_67.lib )。
这是关于导入库的很好的解释。
关于python - conda安装boost后,libboost_python.lib和boost_python.lib有什么区别,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53306741/