Again Boost linking error

Jonathan Wakely jwakely.gcc@gmail.com
Wed Nov 15 15:50:00 GMT 2017


On 15 November 2017 at 15:46, Mahmood Naderan wrote:
> (https://gcc.gnu.org/ml/gcc-help/2017-10/msg00101.html).
> $ g++ -fPIC -L/home/mahmood/boost_1_60_0/lib -lboost_system -lboost_filesystem   -m64 -o ./bin/release/AES    obj/x86_64/release/aescuda.cpp.o obj/x86_64/release/aesCudaUtils.cpp.o  obj/x86_64/release/aesHost.cu.o -L/usr/local/cuda-8.0/lib64   -lcudart

Didn't I already say you need to put the libraries in the right order?

You need to put -lboost_filesystem after the files that depend on it,
and then you need to put -lboost_system after -lboost_filesystem
(because libboost_filesystem depends on libboost_system).



More information about the Gcc-help mailing list