[Scons-users] scons checklib breaks with boost_mpi

Kraus Philipp philipp.kraus at flashpixx.de
Fri Jun 22 11:26:48 EDT 2012


Hello,

I'm using CheckLib for detecting different libraries. I'm using MPI with Boost and a conf.CheckLib("boost_mpi") returns always false also a conf.CheckLib("boost_mpi", language="C++")
I have setup first the CXX compiler to mpic++ and must switch my build script to

if i == "boost_mpi" :
conf.env.Append(LIBS = i)
continue
if not conf.CheckLib(i) :
sys.exit(1)

With this the build and linker can be create a correct executable

Phil


More information about the Scons-users mailing list