Boost logo

Boost Users :

Subject: Re: [Boost-users] Many undefined references for libboost_filesystem
From: Daniel Anderson (wonixen_at_[hidden])
Date: 2017-10-15 14:57:23


look at your linking command, you are probably missing path to the
boost directory.

I see "export" but this does nothing to the linker. check if the
makefile uses those exports.

2017-10-15 9:48 GMT-04:00 mahmood n <nt_mahmood_at_[hidden]>:
> The error (undefined reference) clearly is in the linking step.
>
>
>
> For example, I get
>
>
>
> 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_40_0/lib; export
> BOOST_ROOT=/home/mahmood/boost_1_40_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()'
>
> aescuda.cpp:(.text.startup+0x697): undefined reference to
> `boost::system::get_generic_category()'
>
> aescuda.cpp:(.text.startup+0x6a3): undefined reference to
> `boost::system::get_generic_category()'
>
> aescuda.cpp:(.text.startup+0x6af): undefined reference to
> `boost::system::get_generic_category()'
>
> aescuda.cpp:(.text.startup+0x6bb): undefined reference to
> `boost::system::get_system_category()'
>
>
>
>
>
> And AES/Makefile contains
>
>
>
> LINKFLAGS := -L$(BOOST_LIB)
>
>
>
>
>
>
>
> As you can see the BOOST_LIB variable points to
> /home/mahmood/boost_1_40_0/lib and such functions are in the library files
>
>
>
> mahmood_at_vb:boost_1_40_0$ grep -r get_system_category lib
>
> Binary file lib/libboost_system.so.1.40.0 matches
>
> Binary file lib/libboost_system.so matches
>
> Binary file lib/libboost_system.a matches
>
> Binary file lib/libboost_filesystem.a matches
>
> Binary file lib/libboost_filesystem.so matches
>
> Binary file lib/libboost_filesystem.so.1.40.0 matches
>
>
>
>
>
>
>
>
>
> So, all things look normal. Isn’t that? Why I got that error?
>
>
>
>
>
> Regards,
>
> Mahmood
>
>
>
>
>
>
>
> Sent from Mail for Windows 10
>
>

-- 
Daniel
L'action accède à la perfection quand, bien que vivant, vous êtes déjà mort
Bunan

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