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