Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Linker Issues with -ledit (Ubuntu 14.10)

Tags:

linker

llvm

Before I get into my question, I'm a bit of a Linux newbie. Anyhow, I'm trying to make my project on Ubuntu, I've just upgraded from LLVM 3.4 to LLVM 3.5. When I try and Make my project I get the following linker error:

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

I've googled my problem, and asked some friends on IRC to no avail. When I run edit in the terminal, it doesn't say anything like could not find command, and I saw that I should apt-get the libedit2, which I did and it still didn't fix my issue.

Here's a link to the Makefile.

like image 989
metro-man Avatar asked Dec 31 '25 21:12

metro-man


1 Answers

Turns out I just had to apt-get the libedit-dev package.

like image 101
metro-man Avatar answered Jan 05 '26 06:01

metro-man



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!