1、虚拟机Ubuntu 16.04,安装第三方库,perftools::tcmalloc。

2、Win10下vs2017创建linux项目。

VS2017-Linux项目-使用第三方库如何配置

 

3、项目>>属性>>VC++ 目录>>, 配置虚拟机头文件路径, 库路径。

VS2017-Linux项目-使用第三方库如何配置

4、项目>>属性>>链接器>>输入>>动态库名。输入项目中用到的库名,如 libtcmalloc.so、去掉lib,.so。 填写tcmalloc。即可

VS2017-Linux项目-使用第三方库如何配置

5、编译通过。

VS2017-Linux项目-使用第三方库如何配置

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-20
  • 2022-01-07
  • 2021-12-26
  • 2021-07-13
  • 2022-12-23
  • 2021-10-27
猜你喜欢
  • 2022-12-23
  • 2021-10-15
  • 2021-12-29
  • 2022-12-23
  • 2022-12-23
  • 2021-06-04
相关资源
相似解决方案