vs2017 c++版本生成动态库

 1、首先找到项目属性,将配置类型改为动态库(.dll)

      (注意选择版本配置有debug和release两种)

 2、将要被使用的函数做处理 : 加上 extern "C" _declspec(dllexport)

3、修改生成版本 有四种版本debug x86||debug x64||release x86||release x64

4、生成解决方案

 

 

5、生成的release x64版本动态库在    项目地址\x64\Release   其他同理


错误    C4996    'std::fpos<_Mbstatet>::seekpos': warning STL4019: The member std::fpos::seekpos() is non-Standard, and is preserved only for compatibility with workarounds for old versions of Visual C++. It will be removed in a future release, and in this release always returns 0. Please use standards-conforming mechanisms to manipulate fpos, such as conversions to and from streamoff, or an integral type, instead. If you are receiving this message while compiling Boost.IOStreams, a fix has been submitted upstream to make Boost use standards-conforming mechanisms, as it does for other compilers. You can define _SILENCE_FPOS_SEEKPOS_DEPRECATION_WARNING to acknowledge that you have received this warning, or define _REMOVE_FPOS_SEEKPOS to remove std::fpos::seekpos entirely.    removal    d:\pcl_1_8_1\3rdparty\boost\include\boost-1_64\boost\iostreams\positioning.hpp    96    

资源管理器的项目->属性->c/c++ ->预处理器->预处理器定义添加一项_SILENCE_FPOS_SEEKPOS_DEPRECATION_WARNING

 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值