我正试图编译一个从Prolog外部函数接口调用的C程序。我正在做一些动态编程,这在Prolog中并不完全有效。但是,当我尝试编译我的文件时,我得到了以下错误:
Undefined symbols for architecture x86_64:
"_main", referenced from:
start in crt1.10.6.o
(maybe you meant: __main)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
/Developer/usr/bin/clang returned code 256
*** swipl-ld exit status 1
C文件只是找到的示例此处。
有人知道有没有办法解决这个问题吗?