I installed boost_1_55_0 under /usr/local/boost_1_55_0
, and in my makefile
I set the linking flag as:
CC = g++
CFLAGS = -I ./ -I/usr/local/boost_1_55_0 -w -std=c++11
LFLAGS = -L./ -lm -lpthread -L/usr/local/boost_1_55_0/lib -lboost_regex
I encountered nothing during compile time, but I got:
./$(exec): error while loading shared libraries: libboost_regex.so.1.55.0: cannot open shared object file: No such file or directory
I'm pretty sure I cleaned all old files and compiled again, I also granted access to read the files in usr/local/boost_1_55_0
by sudo chmod -R +x /usr/local/boost_1_55_0
just in case I banned access to read. However, I still got this error. I also tried to move boost_1_55_0
in /usr/lib/
but it does not work either.
I've also read this question: Compiling issue with boost and tried both solutions under this question, but neither of them works for me. Can someone figure out a different solution?
Aucun commentaire:
Enregistrer un commentaire