在我進入我的問題之前,我是一個Linux新手。無論如何,我試圖在Ubuntu上完成我的項目,我剛從LLVM 3.4升級到LLVM 3.5。當我試圖讓我的項目,我得到下面的連接錯誤:鏈接器與-ledit問題(Ubuntu 14.10)
[email protected]:~/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
我GOOGLE了我的問題,並要求在IRC上一些朋友都無濟於事。當我在終端中運行edit
時,它沒有說任何事情都找不到命令,並且我看到我應該apt-get
libedit2
,這是我做的,它仍然沒有解決我的問題。
以下是Makefile的鏈接。
在fedora 21上有同樣的問題。我真的很想知道爲什麼ld拒絕了圖書館,儘管它顯然是在正確的地方。我也想知道爲什麼安裝dev軟件包修復了這個問題。 – Richard