错误消息:“AMDEP”从未定义过(Error message: “AMDEP” was never defined)

编程入门 行业动态 更新时间:2024-10-28 05:17:38
错误消息:“AMDEP”从未定义过(Error message: “AMDEP” was never defined)

我有一个configure.ac ,其中我通过不同的配置选项启用不同的编译器。 configure脚本生成成功,但最后(调用AC_OUTPUT )我收到一条错误消息:

configure: error: conditional "AMDEP" was never defined. Usually this means the macro was only invoked conditionally.

遗憾地查看config.log没有帮助,我不知道是什么原因导致此错误或从哪里开始搜索。

I have a configure.ac in which I enable different compilers by different configure options. The configure script is generated successfully but at the end (call to AC_OUTPUT) I get an error message:

configure: error: conditional "AMDEP" was never defined. Usually this means the macro was only invoked conditionally.

Sadly looking into config.log does not help and I have no idea what causes this error or where to start searching.

最满意答案

显然你不能在if块中嵌入AM_PROG_CC , AM_PROG_CPP或AM_PROG_CXX (无论出于何种原因)。 解决方案是在if块中设置一个变量并将其传递给AM_PROG_ *。

Apparently you cannot embed AM_PROG_CC, AM_PROG_CPP or AM_PROG_CXX in an if block (for whatever reason). Solution was to set a variable in the if block and pass it to AM_PROG_*.

更多推荐

本文发布于:2023-07-30 11:34:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1337866.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:定义   错误   消息   defined   AMDEP

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!