|
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)Â >
>ToÂ
>
> 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 https://github.com/gpgpu-sim/ispass2009-benchmarks/blob/master/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 https://github.com/gpgpu-sim/ispass2009-benchmarks/blob/master/AES/Makefile which only sets the FLAGS.
That file includes a common.mk 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.
Regards,Mahmood
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net