1. 修改pcre++.h 在 class Pcre的定义修改为
 
#ifndef PCRE++_EXPORT_H
#define PCRE++_EXPORT __declspec(dllexport)
#else
#define PCRE++_EXPORT __declspec(dllimport)
#endif
 
class PCRE++_EXPORT Pcre ...
 
这样就修改为windows的dll可导出版本.
 
2. 建立一个windows dll 工程,假设你用的visual studio. 然后将libpcre++ 下的头文件,cc文件导入到工程文件.
 
3. 编译即可.
 
转自网络,mark

相关文章:

  • 2021-04-06
  • 2022-12-23
  • 2021-11-13
  • 2021-11-26
  • 2022-12-23
  • 2022-12-23
  • 2021-08-24
  • 2021-06-04
猜你喜欢
  • 2021-10-16
  • 2022-01-04
  • 2021-05-18
  • 2021-07-30
  • 2021-11-23
  • 2021-10-26
  • 2021-12-15
相关资源
相似解决方案