有什么办法可以解决这个错误吗?体系结构的未定义符号 x86_64:(gnu-prolog)

Is there way I could fix this error ? Undefined symbols for architecture x86_64: (gnu-prolog)

我的程序 运行 在 swi prolog 上运行良好,但是当我尝试 运行 它使用 gnu-prolog 时。它没有 运行 成功。我收到此错误,我不知道如何修复。

这是我的第一个错误

gprolog [我的项目名称]

?- ran the program calling the function
uncaught exception: error(existence_error(procedure,writeln/1),comp/0)

我运行它在一行中它不起作用

我尝试在终端上以不同的方式运行 gplc [我的项目名称]

gplc [我的项目名称]

Undefined symbols for architecture x86_64:
  "predicate(writeln/1)", referenced from:
      predicate(comp/2) in gplcML9Z1g.o
      _Lpred2_1 in gplcML9Z1g.o
      _Lpred2_2 in gplcML9Z1g.o
      _Lpred2_3 in gplcML9Z1g.o
  _Lpred2_4 in gplcML9Z1g.o

ld:未找到体系结构的符号 x86_64 clang:错误:链接器命令失败,退出代码为 1(使用 -v 查看调用) 编译失败

writeln/1 谓词不是标准谓词,在 GNU Prolog 中不受支持。将其替换为标准谓词 write/1nl/0.

的组合