boost linker error that use boost_timer library
For some of the test applications I get a boost linker error:
[ 19%] Linking CXX executable TestFFT
../../src/libippl.a(Timer.cpp.o): In function `Timer::Timer()':
Timer.cpp:(.text+0x9): undefined reference to `boost::timer::cpu_timer::start()'
../../src/libippl.a(Timer.cpp.o): In function `Timer::stop()':
Timer.cpp:(.text+0x71): undefined reference to `boost::timer::cpu_timer::stop()'
Timer.cpp:(.text+0x7c): undefined reference to `boost::timer::cpu_timer::elapsed() const'
../../src/libippl.a(Timer.cpp.o): In function `Timer::start()':
Timer.cpp:(.text+0x55): undefined reference to `boost::timer::cpu_timer::start()'
collect2: error: ld returned 1 exit status
make[2]: *** [ippl/test/FFT/TestFFT] Error 1
make[1]: *** [ippl/test/FFT/CMakeFiles/TestFFT.dir/all] Error 2
This was with the recommended module list:
Currently Loaded Modulefiles:
1) cmake/3.10.3 4) boost/1.68.0 7) gsl/2.5 10) opal-toolchain/master
2) gcc/7.3.0 5) hdf5/1.10.4 8) trilinos/12.12.1
3) openmpi/3.1.3 6) H5hut/2.0.0rc5 9) OpenBLAS/0.2.20
This can be fixed by linking to the boost_timer library.