我正在尝试编译http://judy.sourceforge.net/doc/JudySL_3x.htm#JSLG给出的示例。我已经根据发行版下载、configure
'd、make
'd 和sudo make install
'd Judy 库。但是,当我编译(Mac 上的 GCC)时,我收到以下错误:
Undefined symbols:
"_JudySLFreeArray", referenced from:
_main in ccziTK43.o
"_JudySLNext", referenced from:
_main in ccziTK43.o
"_JudySLIns", referenced from:
_main in ccziTK43.o
"_JudySLFirst", referenced from:
_main in ccziTK43.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
任何人都可以向我指出有关如何解决此问题的信息方向吗?(只是为了记录,正在编译的文件是一个 C 模块,是的。)
另外,我的命令很简单gcc test.c
。