Compilation apt-pkg编译问题

Compilation apt-pkg编译问题,compilation,include,compiler-errors,apt,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位编译代码 可能有什么问题?在使用regex\u t之前,您需要在depcache.h中包含regex.h,或者在包含depcache.h之前,将其包含在包含de

我正在尝试编译一个使用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位编译代码


可能有什么问题?

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


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

告诉我们您试图编译什么可能会有帮助