Boost logo

Boost Users :

Subject: Re: [Boost-users] Many undefined references for libboost_filesystem
From: Mahmood N (nt_mahmood_at_[hidden])
Date: 2017-10-17 07:38:21

>Try changing this line:>
>LINKFLAGS       := -L$(BOOST_LIB) -lboost_system -lboost_filesystem$(BOOST_VER) >
> LINKFLAGS       := -L$(BOOST_LIB) -lboost_filesystem$(BOOST_VER) -lboost_system 

Hi Chris,It is a very nasty error and I have resolved many such errors by putting the right library names and fixing Makefiles. However, I don't know why I cannot cope with this one! I changed the order but still get the same error.

The main Makefile.ispass-2009 contains
$(SETENV) make noinline=$(noinline) -C AES
So that enters AES/ and builds that. We see

mahmood_at_vb:ispass2009-benchmarks$ make -f Makefile.ispass-2009
rm -f ../common; ln -s /home/mahmood/NVIDIA_GPU_Computing_SDK/C/common ../common;
export BINDIR=/home/mahmood/gpgpu-sim_distribution/ispass2009-benchmarks/bin; export ROOTDIR=/home/mahmood/NVIDIA_GPU_Computing_SDK/C/src/; export BINSUBDIR=release; export BOOST_LIB=/home/mahmood/boost_1_54_0/stage/lib; export BOOST_ROOT=/home/mahmood/boost_1_54_0; export BOOST_VER=""; export OPENMPI_BINDIR=/usr/bin/;  make noinline=0 -C AES
make[1]: Entering directory `/home/mahmood/gpgpu-sim_distribution/ispass2009-benchmarks/AES'
obj/x86_64/release/aescuda.cpp.o: In function `_GLOBAL__sub_I_aescuda.cpp':
aescuda.cpp:(.text.startup+0x68b): undefined reference to `boost::system::get_system_category()'

In AES/ the Makefile is which only sets the FLAGS.

That file includes a for rules and targets. It is a 500 line file
I am trying to find the exact command that builds aescuda.cpp.o. I think it is

$(OBJDIR(/%.cpp.o : $(SRCDIR)%.cpp $(C_DEPS)       $(VERBOSE)$(CXX) $(CXXFLAGS) -o $@ -c $<

So, I think something is missing here that the library file is missed.


Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at