Trouble with matc compilation on Ubuntu 14.04

Discussion about building and installing Elmer
Post Reply
volker
Posts: 1
Joined: 03 Sep 2009, 22:56

Trouble with matc compilation on Ubuntu 14.04

Post by volker » 06 Jul 2016, 20:25

Hi all,
when trying to install elmer 8.2, I get stuck on the following error message below. I'm using gcc version 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04.3), and have the readline package correctly installed. Any ideas around?
Best,
Volker


Error message:
/local/volker/elmer/elmerfem/matc/src/main.c: In function ‘main’:
/local/volker/elmer/elmerfem/matc/src/main.c:84:7: warning: incompatible implicit declaration of built-in function ‘free’ [enabled by default]
free(str);
^
[ 1%] Linking C executable matc
CMakeFiles/Matc_bin.dir/main.c.o: In function `main':
/local/volker/elmer/elmerfem/matc/src/main.c:62: undefined reference to `readline'
/local/volker/elmer/elmerfem/matc/src/main.c:65: undefined reference to `add_history'
collect2: error: ld returned 1 exit status
make[2]: *** [matc/src/matc] Error 1
make[1]: *** [matc/src/CMakeFiles/Matc_bin.dir/all] Error 2
make: *** [all] Error 2

Post Reply