apt-pkg编译问题

时间:2011-10-28 02:14:40

标签: compilation include compiler-errors apt

我正在尝试编译使用apt-pkg的第三方代码。错误是

/usr/include/apt-pkg/depcache.h:188: error: ‘regex_t’ was not declared in this scope

我已经验证regex.h存在于/usr/include/regex.h

我正在使用ubuntu 10.4 64位来编译代码。

可能出错?

1 个答案:

答案 0 :(得分:0)

在使用regex_t之前,需要在depcache.h中包含regex.h,或者在包含depcache.h之前将其包含在包含depcache.h的任何代码中。

或者也许有一个#ifdef设置不正确的环境,并且阻止了regex.h的包含。