I already installed libboost
, and I made sure the certain library already located in /usr/lib/x86_64-linux-gnu/
. I already called #include <boost/filesystem.hpp>
in my .cpp file. But, whenever I run this,
g++ -Wall -g -o result.out main.cpp -L/usr/lib/x86_64-linux-gnu -lboost_system
The system gave me
/usr/bin/x86_64-linux-gnu-ld: cannot find -lboost_system collect2: error: ld returned 1 exit status
Realizing it mentioned ld
, I checked my /etc/ld.so.conf.d
, and I found a configuration file linked to /usr/lib/x86_64-linux-gnu/
. I ran sudo ldconfig
, then ran the g++ command again, same result.
I don't know what I'm going to do next, so can anyone help me? I'll provide another information related to this if anyone ask. Thanks in advance.