Boost logo

Boost :

Subject: [boost] [build] targeting different versions of libstdc++
From: James E. King III (jking_at_[hidden])
Date: 2018-11-16 19:46:42


If I make a system with libstdc++6-dev, libstdc++7-dev, and libstdc++8-dev
on it, is there a way to tell clang to use one over the other? By default
it will use the latest one.

I know that for linking one can use the clang flag
"--gcc-toolchain=/usr/lib/gcc/x86_64-linux-gnu/7" to get the link to point
at it, but I'm not sure if this also handles the header paths or not.

If this option works for both header inclusion and for linking, would I
need to specify it as <cxxflags> and also as <linkflags>?

Thanks,

Jim


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk