我正在尝试编译使用apt-pkg的第三方代码。错误是
/usr/include/apt-pkg/depcache.h:188: error: ‘regex_t’ was not declared in this scope
最佳答案
在使用regex_t之前,需要在regex_h中包含regex.h,或者在包含depcache.h之前将其包含在任何包含depcache.h的代码中。
也许有一个#ifdef为您的环境设置不正确,并阻止了regex.h的包含。
https://stackoverflow.com/questions/7924444/
相关文章:
java - 编译时出现一个或多个错误的NetBeans项目
objective-c - 尽管导入了正确的 header ,但使用自定义类的编译器错误
objective-c - UIAlertView dismissWithClickedButton
php - 使用PHP的exec()函数(或类似函数),如何显示终端错误输出?
compiler-errors - nant 构建文件使用 nant 0.86 而不是 0.91 a
c++ - 新手Chrome插件开发人员需要NPAPI入门方面的帮助
java - Java编译时错误: reached end of file while parsin