编译链接错误及解决方法记录
2015-02-12 17:23
169 查看
==============================================================================================
问题描述
在VS2005下调用PCRE.lib链接错
1>Linking...
1>RERewrite.obj : error LNK2019: unresolved external symbol __imp__pcre_free referenced in function _TA_RE_Init
1>RERewrite.obj : error LNK2019: unresolved external symbol __imp__pcre_exec referenced in function _TA_RE_Init
1>RERewrite.obj : error LNK2019: unresolved external symbol __imp__pcre_compile referenced in function _TA_RE_Init
---------------
分析与解决
If you want to statically link this program against a non-dll .a file, you must
define PCRE_STATIC before including pcre.h, otherwise the pcre_malloc() and
pcre_free() exported functions will be declared __declspec(dllimport), with
unwanted results. So in this environment, uncomment the following line. */
//#define PCRE_STATIC
==============================================================================================
问题描述
在VS2005下调试PCRE包,pcre_free报错
Unhandled exception at ...... Access violation reading location 0x00000000.
---------------
分析与解决
将 pcre.h 里面的以下宏定义注释掉即可
#define VPCOMPAT (For Virtual Pascal)
==============================================================================================
问题描述
---------------
分析与解决
==============================================================================================
问题描述
---------------
分析与解决
==============================================================================================
问题描述
---------------
分析与解决
==============================================================================================
问题描述
在VS2005下调用PCRE.lib链接错
1>Linking...
1>RERewrite.obj : error LNK2019: unresolved external symbol __imp__pcre_free referenced in function _TA_RE_Init
1>RERewrite.obj : error LNK2019: unresolved external symbol __imp__pcre_exec referenced in function _TA_RE_Init
1>RERewrite.obj : error LNK2019: unresolved external symbol __imp__pcre_compile referenced in function _TA_RE_Init
---------------
分析与解决
If you want to statically link this program against a non-dll .a file, you must
define PCRE_STATIC before including pcre.h, otherwise the pcre_malloc() and
pcre_free() exported functions will be declared __declspec(dllimport), with
unwanted results. So in this environment, uncomment the following line. */
//#define PCRE_STATIC
==============================================================================================
问题描述
在VS2005下调试PCRE包,pcre_free报错
Unhandled exception at ...... Access violation reading location 0x00000000.
---------------
分析与解决
将 pcre.h 里面的以下宏定义注释掉即可
#define VPCOMPAT (For Virtual Pascal)
==============================================================================================
问题描述
---------------
分析与解决
==============================================================================================
问题描述
---------------
分析与解决
==============================================================================================
问题描述
---------------
分析与解决
==============================================================================================
相关文章推荐
- 记录一个编译链接错误的解决方法
- 在VS2012中创建一个MFC动态链接项目(.dll)后,编译出现一大堆莫名其妙的错误的解决方法
- 编译OSGART时,报OpenThreads链接错误的解决方法
- Eclipse之NDK编译——常见错误的解决方法记录
- 一些编译错误及解决方法<记录>
- 在WinCE6.0下编译DirectShow相关应用时出现题图中的错误链接的解决方法
- 汇编———64位电脑编译链接32位汇编程序错误与解决方法
- 我的编译链接错误+解决方法备忘录(不断更新)
- VS编译链接时错误(Error Link2005)的解决方法
- iOS远程真机之OS X EI Captian 编译 libimobiledevice 错误记录以及解决方法!!
- C/C++常见gcc编译链接错误解决方法
- Eclipse之NDK编译——常见错误的解决方法记录
- 编译和链接 - VC6.0编译错误解决方法集锦
- C++常见gcc编译链接错误解决方法
- Linux内核笔记 - 内核编译错误及解决方法记录
- Android之 Eclipse NDK编译——常见错误的解决方法记录
- 手动编译安装PHP遇到错误以及解决方法记录
- vc编译,报出DllMain的链接错误的解决方法
- C/C++编译链接错误解决方法 汇总
- C++常见gcc编译链接错误解决方法