-ledit 的链接器问题 (Ubuntu 14.10)

Linker Issues with -ledit (Ubuntu 14.10)

在进入我的问题之前,我是一个 Linux 新手。无论如何,我正在尝试在 Ubuntu 上制作我的项目,我刚刚从 LLVM 3.4 升级到 LLVM 3.5。当我尝试制作我的项目时,出现以下 linker 错误:

felix@felix-dev:~/Dev/jayfor$ make clang `llvm-config --cflags` -Wall -Iincludes/ -g src/*.c -c src/*.c clang++ *.o `llvm-config --libs --system-libs --cflags --ldflags core analysis executionengine jit interpreter native` -o j4 /usr/bin/ld: cannot find -ledit clang: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [all] Error 1

我用谷歌搜索了我的问题,并在 IRC 上询问了一些朋友,但无济于事。当我在终端中 运行 edit 时,它没有说找不到命令之类的东西,我看到我应该 apt-get libedit2,我做了它仍然没有解决我的问题。

这是 Makefile 的 link。

原来我只需要 apt-get libedit-dev 包。