【发布时间】:2017-10-24 09:59:44
【问题描述】:
我花了一天时间尝试编译 R-devel。 我已经使用了这个post 来做到这一点。
无论我做什么,我都有:
[...]/src/main/sysutils.c:794: undefined reference to `libiconv'
[...]
[...]/src/main/platform.c:3052: undefined reference to `u_getVersion_54'
[...]
添加许多其他类似的行,类似于this post的最后一条评论。
显然,我有:
$ sudo apt install libc6-dev
libc6-dev is already the newest version (2.24-9ubuntu2.2).
关于 libiconv 的配置步骤似乎没问题:
checking iconv.h usability... yes
checking iconv.h presence... yes
checking for iconv.h... yes
checking for iconv... yes
checking whether iconv accepts "UTF-8", "latin1", "ASCII" and "UCS-*"... yes
checking for iconvlist... no
checking for iconv... yes
checking for iconv declaration...
extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
iconv -l 命令似乎工作正常。 this other post中描述的C文件编译也没有问题。
我应该去哪里看?我使用 Gnome Ubuntu 17.04。
【问题讨论】:
标签: r compiler-errors