0

我有一个为 DEC Unix v4 编写的项目。我想为 linux 编译它。我的项目有 Imakefile,我运行xmkmf生成Makefile,然后运行 ​​make 编译,但我得到Makefile:1059: *** missing separator. Stop.

当我看到这篇文章时,我安装了 SparkyLinux 并libmotif-dev为 Motif 和 CDE 安装了 CDE,然后我将再次生成Makefile并运行make,但我的问题仍然存在

第 1059 行:MComplexProgramTarget(_gdsv_.o,$(LOCAL_LIBRARIES),)

4

2 回答 2

1

最有可能的是你导致了一些不兼容的问题gmake,这应该是你正在使用的 make 版本。安装 BSD make 并使用它来构建系统。可能这会解决你的问题(或者没有,但我遇到过这种问题)根据平台,包被称为bmakeor pmake

于 2018-09-03T09:55:40.727 回答
1

That line is valid in an Imakefile, but not in a Makefile. It looks like a macro for the C preprocessor. When the preprocessor does not find a definition for a macro, it leaves it as-is.

The next question is therefore: Why is the macro MComplexProgramTarget undefined, and which file defines it usually?

To answer this, you need to know where imake reads its definition files ("strace -f xmkmf" can help you with this), and in which file does this word appear?

于 2018-08-31T04:48:16.127 回答