您的位置:首页 > 其它

编译链接错误及解决方法记录

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)

==============================================================================================

问题描述

---------------

分析与解决

==============================================================================================

问题描述

---------------

分析与解决

==============================================================================================

问题描述

---------------

分析与解决

==============================================================================================
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: