错误:“ popt_arg_argv”未申报.我需要使用较旧的海湾合作委员会吗?

error: ‘POPT_ARG_ARGV’ undeclared. Do I need to use an older gcc?

本文关键字:委员会 arg argv popt 错误      更新时间:2023-10-16

我正在尝试从https://github.com/alanxz/rabbitmq-c

构建一个C 项目

但是,当我运行命令

cmake --build . --target install

出现此错误,

error: ‘POPT_ARG_ARGV’ undeclared (first use in this function)

不确定是否相关,但我的GCC

gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-55)

我的Centos

CentOS release 5.11 (Final)

centos 5.x具有POPT版本1.13,但是popt_arg_argv类型是在版本1.14中添加的。